2023-04-06 12:04:53 +09:00
|
|
|
import * as esbuild from 'esbuild'
|
|
|
|
|
|
|
|
await esbuild.build({
|
|
|
|
entryPoints: ['./dist/index.js'],
|
|
|
|
outfile: './dist/index.cjs',
|
|
|
|
bundle: true,
|
|
|
|
platform: 'node',
|
2024-04-17 21:13:02 +09:00
|
|
|
external: ['@napi-rs/lzma', '@napi-rs/tar', '@napi-rs/wasm-tools'],
|
2023-04-06 12:04:53 +09:00
|
|
|
define: {
|
|
|
|
'import.meta.url': '__filename',
|
|
|
|
},
|
|
|
|
})
|