19 lines
No EOL
392 B
JavaScript
19 lines
No EOL
392 B
JavaScript
import * as esbuild from "esbuild";
|
|
import path from "path";
|
|
|
|
const context = await esbuild.context({
|
|
entryPoints: [
|
|
path.join('source', 'main.ts'),
|
|
path.join('source', 'deploy.ts')
|
|
],
|
|
bundle: true,
|
|
outdir: './dist/',
|
|
platform: 'node',
|
|
target: 'node10.4',
|
|
sourcemap: 'linked',
|
|
loader: {
|
|
'.node': 'copy',
|
|
}
|
|
})
|
|
|
|
export default context |