-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
import { build } from 'esbuild' | ||
;(async () => { | ||
const res = await build({ | ||
void (async () => { | ||
await build({ | ||
entryPoints: ['./src/index.ts'], | ||
bundle: true, | ||
minify: true, | ||
keepNames: true, | ||
sourcemap: 'inline', | ||
sourcesContent: true, | ||
outfile: './dist/index.js', | ||
platform: 'node', | ||
format: 'cjs', | ||
external: [''], | ||
define: { | ||
'process.env.NODE_ENV': `"production"`, | ||
}, | ||
metafile: true, | ||
alias: { | ||
'@': './src', | ||
}, | ||
}) | ||
})() |
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.