Skip to content

Commit

Permalink
Add esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpapercut committed Apr 22, 2024
1 parent 61cb881 commit dc83b2c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
@@ -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'
},
});

0 comments on commit dc83b2c

Please sign in to comment.