Skip to content

Commit

Permalink
fix: rm reserved properties
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Jul 23, 2024
1 parent 6d6b5e1 commit 47f0c70
Showing 1 changed file with 1 addition and 36 deletions.
37 changes: 1 addition & 36 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const config = {
patterns: [
{
from: path.resolve(__dirname, 'src', 'public'),
globOptions: { ignore: [path.resolve(__dirname, 'src', 'public', 'data', 'src') ] },
globOptions: { ignore: [path.resolve(__dirname, 'src', 'public', 'data', 'src')] },
},
{ from: path.resolve(__dirname, 'src', 'js', 'vendor', 'bz2.wasm') },
],
Expand Down Expand Up @@ -126,41 +126,6 @@ module.exports = () => {
terserOptions: {
module: true,
mangle: true,
// mangle: {
// properties: {
// keep_quoted: true, // needed for tinymidipcm.mjs
// reserved: [
// 'loadTinyMidiPCM', // needed for tinymidipcm.mjs
// 'newBzip2State', // keeps renaming this to $S
// 'portOffset', // idk why but has to
// 'willReadFrequently', // terser removes this option from canvas
// 'members', // terser messes this up
// '__liftRecord5', // the rest is for vendor
// '__lowerRecord5',
// '__liftString',
// '__liftArray',
// '__lowerArray',
// '__liftTypedArray',
// '__lowerTypedArray',
// '__liftStaticArray',
// '__lowerStaticArray',
// '__retain',
// '__release',
// '__notnull',
// '__setU8',
// '__setU32',
// '__getU8',
// '__getU32',
// '__pin',
// '__new',
// '__unpin'
// ]
// }
// },
format: {
quote_style: 3, // original
keep_quoted_props: true // needed for tinymidipcm.mjs
}
}
})
);
Expand Down

0 comments on commit 47f0c70

Please sign in to comment.