File tree 7 files changed +108
-24
lines changed
7 files changed +108
-24
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ softprops
43
43
Solana
44
44
sponsorware
45
45
stacksjs
46
+ thumbhash
46
47
tlsx
47
48
twoslash
48
49
typecheck
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ await Bun.build({
9
9
target : 'node' ,
10
10
minify : true ,
11
11
splitting : true ,
12
+ external : [ 'bun' ] ,
12
13
plugins : [ dts ( ) ] ,
13
14
} )
14
15
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 67
67
"@stacksjs/tlsx" : " ^0.10.0" ,
68
68
"@types/bun" : " ^1.2.2" ,
69
69
"@vite-pwa/vitepress" : " ^0.5.3" ,
70
- "bumpp" : " ^10.0.2 " ,
70
+ "bumpp" : " ^10.0.3 " ,
71
71
"bun-plugin-dtsx" : " ^0.21.9" ,
72
72
"bunfig" : " ^0.5.3" ,
73
73
"cac" : " ^6.7.14" ,
Original file line number Diff line number Diff line change 1
1
dependencies :
2
- bun.sh : ^1.2.0
2
+ bun.sh : ^1.2.2
Original file line number Diff line number Diff line change
1
+ export * from './analyze'
1
2
export { config } from './config'
3
+ export * from './favicon'
4
+ export * from './og'
5
+ export * from './plugins'
6
+ export * from './processor'
7
+ export * from './responsive'
8
+ export * from './sprite-generator'
9
+ export * from './thumbhash'
2
10
export * from './types'
3
11
export * from './utils'
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export async function generateSprite(
31
31
outputDir : string ,
32
32
config : SpriteConfig = { } ,
33
33
) : Promise < SpriteResult > {
34
- const {
34
+ let {
35
35
padding = 2 ,
36
36
maxWidth = 2048 ,
37
37
prefix = 'sprite' ,
@@ -60,7 +60,7 @@ export async function generateSprite(
60
60
let currentX = 0
61
61
let currentY = 0
62
62
let rowHeight = 0
63
- let maxWidth = 0
63
+ maxWidth = 0
64
64
let maxHeight = 0
65
65
66
66
const positions = sprites . map ( ( sprite ) => {
You can’t perform that action at this time.
0 commit comments