diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2019-03-15 00:20:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 00:20:20 +0800 |
commit | d90777b724689af625c36ed6d557b024775ee95a (patch) | |
tree | 5fe1aad5f5aeaad383b0cef847b445e862af07fd /test/input/issue-3315 | |
parent | e49297e5eb7039246cc3a78019234826631eb623 (diff) | |
download | tracifyjs-d90777b724689af625c36ed6d557b024775ee95a.tar.gz tracifyjs-d90777b724689af625c36ed6d557b024775ee95a.zip |
parse `mangle.properties.regex` in `--config-file` properly (#3337)
fixes #3315
Diffstat (limited to 'test/input/issue-3315')
-rw-r--r-- | test/input/issue-3315/config.json | 8 | ||||
-rw-r--r-- | test/input/issue-3315/input.js | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test/input/issue-3315/config.json b/test/input/issue-3315/config.json new file mode 100644 index 00000000..4bcbaed9 --- /dev/null +++ b/test/input/issue-3315/config.json @@ -0,0 +1,8 @@ +{
+ "compress": false,
+ "mangle": {
+ "properties": {
+ "regex": "/^_/"
+ }
+ }
+}
diff --git a/test/input/issue-3315/input.js b/test/input/issue-3315/input.js new file mode 100644 index 00000000..5013fc2f --- /dev/null +++ b/test/input/issue-3315/input.js @@ -0,0 +1,8 @@ +function f() { + "aaaaaaaaaa"; + var o = { + prop: 1, + _int: 2, + }; + return o.prop + o._int; +} |