diff --git a/esbuild.config.mjs b/esbuild.config.mjs new file mode 100644 index 0000000..325a7e6 --- /dev/null +++ b/esbuild.config.mjs @@ -0,0 +1,15 @@ +import esbuild from 'esbuild'; + +esbuild.build({ + entryPoints: ['./wypst.js'], + bundle: true, + minify: true, + sourcemap: true, + target: ['es6'], + outfile: './dist/wypst_inlined.js', + format: 'iife', + globalName: 'wypst', + loader: { + '.wasm': 'binary' + }, +});