terser 3.10.10 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of terser might be problematic. Click here for more details.
- package/README.md +2 -0
- package/bin/uglifyjs +3 -5
- package/dist/bundle.js +3 -11993
- package/dist/bundle.js.map +1 -1
- package/lib/compress.js +46 -5
- package/lib/parse.js +1 -1
- package/lib/scope.js +14 -3
- package/package.json +2 -2
package/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
terser
|
2
2
|
======
|
3
3
|
|
4
|
+
*note:* Support this project with patreon by clicking [here](https://www.patreon.com/fabiosantoscode) and becoming a patron.
|
5
|
+
|
4
6
|
[](https://travis-ci.org/terser-js/terser) [](https://coveralls.io/github/terser-js/terser?branch=master)
|
5
7
|
|
6
8
|
A JavaScript parser, mangler/compressor and beautifier toolkit for ES6+.
|
package/bin/uglifyjs
CHANGED
@@ -13,11 +13,9 @@ var program = require("commander");
|
|
13
13
|
var bundle_path = __dirname + "/../dist/bundle.js";
|
14
14
|
if (!process.env.TERSER_NO_BUNDLE && fs.existsSync(bundle_path)) {
|
15
15
|
var UglifyJS = require(bundle_path)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
} catch (err) {}
|
20
|
-
}
|
16
|
+
try {
|
17
|
+
require("source-map-support").install();
|
18
|
+
} catch (err) {}
|
21
19
|
} else {
|
22
20
|
var UglifyJS = require("../tools/node.js");
|
23
21
|
}
|