@coorpacademy/components 11.25.0 → 11.25.1

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.
Files changed (2) hide show
  1. package/README.md +7 -0
  2. package/package.json +5 -3
package/README.md CHANGED
@@ -181,3 +181,10 @@ You may need to install these optional libs depending on which native components
181
181
  Error when trying to launch the storybook:
182
182
 
183
183
  Try to delete your ```node_modules```, go to the project's root and launch: ```yarn```
184
+
185
+ ## Generating a Bundle Analyzer Report
186
+
187
+ To check the content of the bundle and optimize it if needed, we set up `webpack-bundle-analyzer`, which generates a bundle analysis report. This visualizes the size of webpack output files with an interactive zoomable treemap.
188
+ To generate it, just run `npm run build:stats`.
189
+
190
+ ![Webpack Bundle Analyzer Report](./doc/Webpack-Bundle-Analyzer-Report.png)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.25.0",
3
+ "version": "11.25.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,6 +20,7 @@
20
20
  "build:es": "npm run build:es:babel && npm run build:es:types",
21
21
  "build": "concurrently \"npm run build:commonjs\" \"npm run build:es\"",
22
22
  "build:watch": "npm run build:es -- -w --verbose",
23
+ "build:stats": "webpack --profile --json=dist/stats.json",
23
24
  "clean:commonjs": "rm -rf lib",
24
25
  "clean:es": "rm -rf es",
25
26
  "clean": "concurrently \"npm run clean:commonjs\" \"npm run clean:es\"",
@@ -161,12 +162,13 @@
161
162
  "stylelint-config-standard": "^28.0.0",
162
163
  "ts-node": "^10.9.1",
163
164
  "typescript": "^4.8.3",
164
- "webpack": "^5.74.0"
165
+ "webpack": "^5.74.0",
166
+ "webpack-bundle-analyzer": "^4.10.1"
165
167
  },
166
168
  "author": "CoorpAcademy",
167
169
  "browserslist": [
168
170
  "last 2 versions",
169
171
  "IE 11"
170
172
  ],
171
- "gitHead": "9a1e87b8bdb7a6bb5563cffb014db7c18b4e553a"
173
+ "gitHead": "65039dc9d9e7355844ad401a6b8463c39043b277"
172
174
  }