2 ms·
It's a pretty simple setup for now. For tsc it's a single line in package.json (+tsconfig with outdir: "dist"). For esbuild I am running the following Node sc
by jannes 6y ago
It's a pretty simple setup for now.
For tsc it's a single line in package.json (+tsconfig with outdir: "dist").
For esbuild I am running the following Node script (saved as .mjs):
import esbuild from 'esbuild';
let args = process.argv.slice(2);
await esbuild.build({
watch: args.includes('-w'),
entryPoints: [
'dist/entry1.js',
'dist/entry2.js',
'dist/entry3.js',
],
bundle: true,
target: 'es5',
outdir: 'bundles/',
});