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" ;
22import { unlink } from "node:fs/promises" ;
33import { basename , join } from "node:path" ;
44
@@ -11,7 +11,7 @@ function glob(
1111 pattern = "**/*.{ts,tsx,js,jsx}"
1212) : AsyncIterableIterator < string > {
1313 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 } ) ;
1515}
1616
1717export async function build ( {
@@ -31,7 +31,7 @@ export async function build({
3131 sourcemap ?: "external" | "none" | "inline" ;
3232 minify ?: boolean ;
3333 define ?: Record < string , string > ;
34- plugins ?: BunPlugin [ ] ;
34+ plugins ?: import ( "bun" ) . BunPlugin [ ] ;
3535} ) {
3636 const entrypoints = [ join ( baseDir , hydrate ) ] ;
3737 const absPageDir = join ( baseDir , pageDir ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ await Bun.build({
2020 sourcemap : "inline" ,
2121 external : [ "react" , "react-dom" ] ,
2222 entrypoints : [ ...( await glob ( "*.ts" ) ) ] ,
23- plugins : [ dts ( { } ) ] ,
23+ plugins : [ dts ( ) ] ,
2424} ) ;
2525
2626for ( const file of [
You can’t perform that action at this time.
0 commit comments