Skip to content

Commit

Permalink
added optional line for esbuild minifying, but we use SWC because it…
Browse files Browse the repository at this point in the history
…'s more compact
  • Loading branch information
Naviary2 committed Nov 29, 2024
1 parent 5e89480 commit 3daad55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ async function bundleESMScripts() {
splitting: true,
legalComments: 'none', // Even skips copyright noticies, such as in gl-matrix
format: 'esm', // or 'cjs' for Common JS
allowOverwrite: true
allowOverwrite: true,
// minify: true, // Enable minification. SWC is more compact so we don't use esbuild's
});

// Further minify them. This cuts off their size a further 60%!!!
Expand Down

0 comments on commit 3daad55

Please sign in to comment.