resolver-module-handshake/build.js

15 lines
305 B
JavaScript
Raw Normal View History

2022-08-20 07:46:43 +00:00
import esbuild from "esbuild"
esbuild.buildSync({
2022-08-20 10:18:36 +00:00
entryPoints: ['src-module/index.ts'],
2022-08-20 07:46:43 +00:00
outfile: 'dist-module/index.js',
format: 'esm',
bundle: true,
legalComments: 'external',
// minify: true
tsconfig: "tsconfig.module.json",
define: {
'global': 'self'
}
})