From 95b8e42d73c18c887356dc76393a7a3f51dc6a3b Mon Sep 17 00:00:00 2001 From: lesleyrs <19632758+lesleyrs@users.noreply.github.com> Date: Wed, 10 Jul 2024 21:30:44 +0200 Subject: [PATCH] fix --- package.json | 2 +- webpack.config.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d12cc79b..f19cdb6c 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "build": "npm run asc && webpack --mode=production --node-env=production", "build:dev": "npm run asc && webpack --mode=development", "build:prod": "npm run asc && webpack --mode=production --node-env=production", - "dev": "npm run asc && webpack-dev-server --hot --watch", + "dev": "npm run asc && webpack-dev-server --hot", "lint": "eslint . --ext .ts", "lint:fix": "eslint . --ext .ts --fix", "format": "prettier src/**/*.{js,ts} --write", diff --git a/webpack.config.js b/webpack.config.js index 98b42370..014fafb6 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -121,11 +121,11 @@ module.exports = () => { minify: TerserPlugin.terserMinify, parallel: true, terserOptions: { - mangle: true, - // mangle: { - // properties: { - // keep_quoted: true, // needed for tinymidipcm.mjs - // reserved: [ + mangle: { + properties: { + // keep_quoted: true, // needed for tinymidipcm.mjs + reserved: [ + 'World_default', // 'loadTinyMidiPCM', // needed for tinymidipcm.mjs // 'newBzip2State', // keeps renaming this to $S // 'portOffset', // idk why but has to @@ -150,9 +150,9 @@ module.exports = () => { // '__pin', // '__new', // '__unpin' - // ] - // } - // }, + ] + } + }, format: { quote_style: 3, // original keep_quoted_props: true // needed for tinymidipcm.mjs