Reduce binary size (#1242)

This commit is contained in:
Zero Liu 2025-02-11 23:59:05 -08:00 committed by GitHub
parent 2ca4a4a955
commit dc65c90e8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,9 @@ const context = await esbuild.context({
plugins: [svgPlugin(), wasmPlugin],
define: {
global: "window",
"process.env.NODE_ENV": prod ? '"production"' : '"development"',
},
minify: prod,
});
if (prod) {