Skip to content

Commit 40f0047

Browse files
committed
Add Terser option to avoid breaking scripts
1 parent 8095fc3 commit 40f0047

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ export default (opts = {}) => {
5050
minimizer: [new TerserPlugin({
5151
sourceMap: true,
5252
terserOptions: {
53+
compress: {
54+
evaluate: false, // Avoid breaking gjs scripts
55+
},
5356
output: {
5457
quote_style: 3, // Preserve original quotes
5558
preamble: banner, // banner here instead of BannerPlugin

0 commit comments

Comments
 (0)