terser 4.6.6 → 4.6.10
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/CHANGELOG.md +20 -0
- package/README.md +7 -4
- package/bin/terser +1 -1
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +12 -6
- package/tools/terser.d.ts +3 -1
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"homepage": "https://terser.org",
|
5
5
|
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
6
6
|
"license": "BSD-2-Clause",
|
7
|
-
"version": "4.6.
|
7
|
+
"version": "4.6.10",
|
8
8
|
"engines": {
|
9
9
|
"node": ">=6.0.0"
|
10
10
|
},
|
@@ -32,17 +32,17 @@
|
|
32
32
|
"source-map-support": "~0.5.12"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"acorn": "^7.
|
35
|
+
"acorn": "^7.1.1",
|
36
36
|
"astring": "^1.4.1",
|
37
37
|
"eslint": "^6.3.0",
|
38
38
|
"eslump": "^2.0.0",
|
39
|
-
"mocha": "^
|
39
|
+
"mocha": "^7.1.0",
|
40
40
|
"mochallel": "^2.0.0",
|
41
41
|
"pre-commit": "^1.2.2",
|
42
42
|
"rimraf": "^3.0.0",
|
43
|
-
"rollup": "^
|
44
|
-
"rollup-plugin-terser": "^5.
|
45
|
-
"semver": "^
|
43
|
+
"rollup": "^2.0.6",
|
44
|
+
"rollup-plugin-terser": "^5.3.0",
|
45
|
+
"semver": "^7.1.3"
|
46
46
|
},
|
47
47
|
"scripts": {
|
48
48
|
"test": "npm run build -- --configTest && node test/run-tests.js",
|
@@ -102,6 +102,12 @@
|
|
102
102
|
],
|
103
103
|
"no-debugger": "error",
|
104
104
|
"no-undef": "error",
|
105
|
+
"no-unused-vars": [
|
106
|
+
"error",
|
107
|
+
{
|
108
|
+
"varsIgnorePattern": "^_$"
|
109
|
+
}
|
110
|
+
],
|
105
111
|
"no-tabs": "error",
|
106
112
|
"semi": [
|
107
113
|
"error",
|
package/tools/terser.d.ts
CHANGED
@@ -63,6 +63,7 @@ export interface CompressOptions {
|
|
63
63
|
unsafe_comps?: boolean;
|
64
64
|
unsafe_Function?: boolean;
|
65
65
|
unsafe_math?: boolean;
|
66
|
+
unsafe_symbols?: boolean;
|
66
67
|
unsafe_methods?: boolean;
|
67
68
|
unsafe_proto?: boolean;
|
68
69
|
unsafe_regexp?: boolean;
|
@@ -163,7 +164,8 @@ export interface MinifyOutput {
|
|
163
164
|
}
|
164
165
|
|
165
166
|
export interface SourceMapOptions {
|
166
|
-
content
|
167
|
+
/** Source map object, 'inline' or source map file content */
|
168
|
+
content?: RawSourceMap | string;
|
167
169
|
includeSources?: boolean;
|
168
170
|
filename?: string;
|
169
171
|
root?: string;
|