瀏覽代碼

chore: enable inlining of vars/consts

previously it was disabled because Terser incorrectly inlined bigFunction() call as an in-place IIFE, which needlessly recreated the function each time it ran
tophf 3 年之前
父節點
當前提交
4c48ff22db
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      scripts/webpack.conf.js

+ 0 - 1
scripts/webpack.conf.js

@@ -31,7 +31,6 @@ const MIN_OPTS = {
     compress: {
       // `terser` often inlines big one-time functions inside a small "hot" function
       reduce_funcs: false,
-      reduce_vars: false,
     },
     output: {
       ascii_only: true,