close to final version added the subtaskand comment working section
This commit is contained in:
17
server/build.mjs
Normal file
17
server/build.mjs
Normal file
@@ -0,0 +1,17 @@
|
||||
import { build } from 'esbuild';
|
||||
import { SpinEsbuildPlugin } from "@spinframework/build-tools/plugins/esbuild/index.js";
|
||||
|
||||
const spinPlugin = await SpinEsbuildPlugin();
|
||||
|
||||
await build({
|
||||
entryPoints: ['./app_spin.js'],
|
||||
outfile: './dist/spin.js',
|
||||
bundle: true,
|
||||
format: 'esm',
|
||||
platform: 'node',
|
||||
sourcemap: false,
|
||||
minify: false,
|
||||
plugins: [spinPlugin],
|
||||
target: 'es2020',
|
||||
external: ['fermyon:*', 'spin:*'],
|
||||
});
|
||||
Reference in New Issue
Block a user