Commit a52d04a 1 parent 678431d commit a52d04a Copy full SHA for a52d04a
File tree 1 file changed +4
-4
lines changed
tools/sircli/src/plugins/builder/utils
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ export const build = async (options: BuildOptions) => {
20
20
try {
21
21
const tempDir = join ( options . cwd , 'dist' , '.build' )
22
22
23
- const chunkFiles = [ ...new Bun . Glob ( join ( tempDir , './**/chunk-*' ) ) . scanSync ( ) ]
24
-
25
- await Promise . all ( chunkFiles . map ( file => unlink ( file ) ) )
26
-
27
23
if ( ! ( await exists ( tempDir ) ) ) {
28
24
await mkdir ( tempDir , {
29
25
recursive : true ,
30
26
} )
31
27
}
32
28
29
+ const chunkFiles = [ ...new Bun . Glob ( join ( tempDir , './**/chunk-*' ) ) . scanSync ( ) ]
30
+
31
+ await Promise . all ( chunkFiles . map ( file => unlink ( file ) ) )
32
+
33
33
const builder = await Bun . build ( {
34
34
entrypoints : options . entries . map ( entry => entry . source ) ,
35
35
splitting : true ,
You can’t perform that action at this time.
0 commit comments