webpack-bundle-analyzer 3.9.0 → 4.2.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.
- package/CHANGELOG.md +29 -0
- package/lib/BundleAnalyzerPlugin.js +55 -85
- package/lib/analyzer.js +78 -35
- package/lib/bin/analyzer.js +1 -3
- package/lib/parseUtils.js +83 -10
- package/lib/statsUtils.js +90 -0
- package/lib/template.js +73 -0
- package/lib/tree/BaseFolder.js +1 -3
- package/lib/tree/ConcatenatedModule.js +4 -12
- package/lib/tree/ContentFolder.js +2 -8
- package/lib/tree/ContentModule.js +2 -8
- package/lib/tree/Folder.js +3 -11
- package/lib/utils.js +19 -4
- package/lib/viewer.js +121 -184
- package/package.json +47 -49
- package/public/viewer.js +4 -14
- package/public/viewer.js.LICENSE.txt +5 -0
- package/public/viewer.js.map +1 -1
- package/src/BundleAnalyzerPlugin.js +4 -11
- package/src/analyzer.js +76 -31
- package/src/bin/analyzer.js +1 -2
- package/src/parseUtils.js +96 -11
- package/src/statsUtils.js +82 -0
- package/{views/viewer.ejs → src/template.js} +50 -7
- package/src/tree/BaseFolder.js +1 -1
- package/src/tree/ConcatenatedModule.js +2 -2
- package/src/tree/Folder.js +1 -1
- package/src/utils.js +16 -4
- package/src/viewer.js +27 -73
- package/views/script.ejs +0 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack-bundle-analyzer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap",
|
|
5
5
|
"author": "Yury Grunin <grunin.ya@ya.ru>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,79 +16,77 @@
|
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"bin": "lib/bin/analyzer.js",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": ">=
|
|
19
|
+
"node": ">= 10.13.0"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"start": "gulp watch",
|
|
23
23
|
"build": "gulp build",
|
|
24
24
|
"npm-publish": "npm run lint && npm run build && npm test && npm publish",
|
|
25
25
|
"lint": "eslint --ext js,jsx .",
|
|
26
|
-
"test": "
|
|
27
|
-
"test
|
|
26
|
+
"install-test-webpack-versions": "./bin/install-test-webpack-versions.sh",
|
|
27
|
+
"test": "npm run install-test-webpack-versions && mocha --exit --require @babel/register",
|
|
28
|
+
"test-dev": "npm run install-test-webpack-versions && mocha --watch --watch-ignore test/output --require @babel/register"
|
|
28
29
|
},
|
|
29
30
|
"files": [
|
|
30
31
|
"public",
|
|
31
32
|
"lib",
|
|
32
|
-
"src"
|
|
33
|
-
"views"
|
|
33
|
+
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"acorn": "^
|
|
37
|
-
"acorn-walk": "^
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"mkdirp": "^0.5.1",
|
|
47
|
-
"opener": "^1.5.1",
|
|
48
|
-
"ws": "^6.0.0"
|
|
36
|
+
"acorn": "^8.0.4",
|
|
37
|
+
"acorn-walk": "^8.0.0",
|
|
38
|
+
"chalk": "^4.1.0",
|
|
39
|
+
"commander": "^6.2.0",
|
|
40
|
+
"express": "^4.17.1",
|
|
41
|
+
"filesize": "^6.1.0",
|
|
42
|
+
"gzip-size": "^6.0.0",
|
|
43
|
+
"lodash": "^4.17.20",
|
|
44
|
+
"opener": "^1.5.2",
|
|
45
|
+
"ws": "^7.3.1"
|
|
49
46
|
},
|
|
50
47
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "7.
|
|
52
|
-
"@babel/plugin-proposal-class-properties": "7.
|
|
53
|
-
"@babel/plugin-proposal-decorators": "7.
|
|
54
|
-
"@babel/plugin-transform-runtime": "7.
|
|
55
|
-
"@babel/
|
|
56
|
-
"@babel/preset-
|
|
57
|
-
"@babel/
|
|
58
|
-
"@babel/
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"babel-
|
|
62
|
-
"babel-loader": "8.0.5",
|
|
48
|
+
"@babel/core": "7.12.3",
|
|
49
|
+
"@babel/plugin-proposal-class-properties": "7.12.1",
|
|
50
|
+
"@babel/plugin-proposal-decorators": "7.12.1",
|
|
51
|
+
"@babel/plugin-transform-runtime": "7.12.1",
|
|
52
|
+
"@babel/preset-env": "7.12.1",
|
|
53
|
+
"@babel/preset-react": "7.12.5",
|
|
54
|
+
"@babel/register": "7.12.1",
|
|
55
|
+
"@babel/runtime": "7.12.5",
|
|
56
|
+
"autoprefixer": "10.0.1",
|
|
57
|
+
"babel-eslint": "10.1.0",
|
|
58
|
+
"babel-loader": "8.1.0",
|
|
63
59
|
"babel-plugin-lodash": "3.3.4",
|
|
64
60
|
"chai": "4.2.0",
|
|
65
61
|
"chai-subset": "1.6.0",
|
|
66
62
|
"classnames": "2.2.6",
|
|
67
|
-
"core-js": "
|
|
68
|
-
"css-loader": "
|
|
63
|
+
"core-js": "3.6.5",
|
|
64
|
+
"css-loader": "5.0.1",
|
|
69
65
|
"cssnano": "4.1.10",
|
|
70
|
-
"del": "
|
|
66
|
+
"del": "6.0.0",
|
|
71
67
|
"eslint": "5.16.0",
|
|
72
68
|
"eslint-config-th0r": "2.0.0",
|
|
73
|
-
"eslint-config-th0r-react": "2.0.
|
|
74
|
-
"eslint-plugin-react": "7.
|
|
75
|
-
"exports-loader": "
|
|
69
|
+
"eslint-config-th0r-react": "2.0.1",
|
|
70
|
+
"eslint-plugin-react": "7.21.5",
|
|
71
|
+
"exports-loader": "1.1.1",
|
|
72
|
+
"globby": "11.0.1",
|
|
76
73
|
"gulp": "4.0.2",
|
|
77
74
|
"gulp-babel": "8.0.0",
|
|
78
|
-
"mobx": "5.
|
|
79
|
-
"mobx-
|
|
80
|
-
"mocha": "
|
|
81
|
-
"nightmare": "3.0.
|
|
75
|
+
"mobx": "5.15.7",
|
|
76
|
+
"mobx-react": "6.3.1",
|
|
77
|
+
"mocha": "8.2.1",
|
|
78
|
+
"nightmare": "3.0.2",
|
|
79
|
+
"postcss": "8.1.6",
|
|
82
80
|
"postcss-icss-values": "2.0.2",
|
|
83
|
-
"postcss-loader": "
|
|
84
|
-
"preact": "
|
|
81
|
+
"postcss-loader": "4.0.4",
|
|
82
|
+
"preact": "10.5.5",
|
|
85
83
|
"stream-combiner2": "1.1.1",
|
|
86
|
-
"style-loader": "0.
|
|
87
|
-
"terser-webpack-plugin": "
|
|
88
|
-
"url-loader": "1.1
|
|
89
|
-
"webpack": "4.
|
|
90
|
-
"webpack-cli": "3.3.
|
|
91
|
-
"webpack-dev-server": "3.
|
|
84
|
+
"style-loader": "2.0.0",
|
|
85
|
+
"terser-webpack-plugin": "5.0.3",
|
|
86
|
+
"url-loader": "4.1.1",
|
|
87
|
+
"webpack": "5.4.0",
|
|
88
|
+
"webpack-cli": "3.3.12",
|
|
89
|
+
"webpack-dev-server": "3.11.0"
|
|
92
90
|
},
|
|
93
91
|
"keywords": [
|
|
94
92
|
"webpack",
|