File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- import { BunPlugin , Glob , fileURLToPath , pathToFileURL } from "bun" ;
1
+ import { Glob , fileURLToPath , pathToFileURL } from "bun" ;
2
2
import { unlink } from "node:fs/promises" ;
3
3
import { basename , join } from "node:path" ;
4
4
@@ -11,7 +11,7 @@ function glob(
11
11
pattern = "**/*.{ts,tsx,js,jsx}"
12
12
) : AsyncIterableIterator < string > {
13
13
const glob = new Glob ( pattern ) ;
14
- return glob . scan ( { cwd : path , onlyFiles : true , absolute : true } )
14
+ return glob . scan ( { cwd : path , onlyFiles : true , absolute : true } ) ;
15
15
}
16
16
17
17
export async function build ( {
@@ -31,7 +31,7 @@ export async function build({
31
31
sourcemap ?: "external" | "none" | "inline" ;
32
32
minify ?: boolean ;
33
33
define ?: Record < string , string > ;
34
- plugins ?: BunPlugin [ ] ;
34
+ plugins ?: import ( "bun" ) . BunPlugin [ ] ;
35
35
} ) {
36
36
const entrypoints = [ join ( baseDir , hydrate ) ] ;
37
37
const absPageDir = join ( baseDir , pageDir ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ await Bun.build({
20
20
sourcemap : "inline" ,
21
21
external : [ "react" , "react-dom" ] ,
22
22
entrypoints : [ ...( await glob ( "*.ts" ) ) ] ,
23
- plugins : [ dts ( { } ) ] ,
23
+ plugins : [ dts ( ) ] ,
24
24
} ) ;
25
25
26
26
for ( const file of [
You can’t perform that action at this time.
0 commit comments