rollup-plugin-webpack-stats 0.2.3 → 0.2.4

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 +24 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -36,7 +36,30 @@ module.exports = {
36
36
  };
37
37
  ```
38
38
 
39
- ## Example setup with [@relative-ci/agent](https://github.com/relative-ci/agent)
39
+ ```js
40
+ // vite.config.js
41
+ import { defineConfig } from 'vite';
42
+ import { webpackStats } from 'rollup-plugin-webpack-stats';
43
+
44
+ export default defineConfig((env) => ({
45
+ plugins: [
46
+ // Output webpack-stats.json file
47
+ webpackStats(),
48
+ ],
49
+ }));
50
+ ```
51
+
52
+ ### Options
53
+
54
+ - `fileName` - JSON stats file inside rollup/vite output directory
55
+
56
+ ## Resources
57
+
58
+ - [Vite - Using plugins](https://vitejs.dev/guide/using-plugins)
59
+ - [Rollup - Using plugins](https://rollupjs.org/tutorial/#using-plugins)
60
+ - [RelativeCI - Vite configuration for better bundle monitoring](https://relative-ci.com/documentation/guides/vite-config)
61
+
62
+ ## [@relative-ci/agent](https://github.com/relative-ci/agent) examples
40
63
 
41
64
  - [example-vite-github-action](https://github.com/relative-ci/example-vite-github-action)
42
65
  - [example-vite-cli-github-action](https://github.com/relative-ci/example-vite-cli-github-action)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-webpack-stats",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -45,13 +45,13 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@release-it/conventional-changelog": "8.0.1",
48
- "@rollup/plugin-typescript": "11.1.5",
48
+ "@rollup/plugin-typescript": "11.1.6",
49
49
  "@tsconfig/node14": "14.1.0",
50
- "@types/node": "20.10.5",
51
- "dotenv": "16.3.1",
52
- "husky": "8.0.3",
53
- "release-it": "17.0.1",
54
- "rollup": "4.9.1",
50
+ "@types/node": "20.11.10",
51
+ "dotenv": "16.4.1",
52
+ "husky": "9.0.7",
53
+ "release-it": "17.0.3",
54
+ "rollup": "4.9.6",
55
55
  "tslib": "2.6.2",
56
56
  "typescript": "5.3.3",
57
57
  "vitest": "0.34.6"