rollup-plugin-stats 1.3.8-beta.1 → 1.3.9
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/README.md +47 -8
- package/package.json +22 -11
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# rollup-plugin-stats
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/rollup-plugin-stats)
|
|
4
|
+
[](https://www.npmjs.com/package/rollup-plugin-stats)
|
|
4
5
|

|
|
5
6
|
[](https://socket.dev/npm/package/rollup-plugin-stats)
|
|
6
7
|
[](https://github.com/relative-ci/rollup-plugin-stats/actions/workflows/ci.yml)
|
|
@@ -21,28 +22,66 @@ yarn add --dev rollup-plugin-stats
|
|
|
21
22
|
|
|
22
23
|
## Configure
|
|
23
24
|
|
|
25
|
+
### Vite
|
|
26
|
+
|
|
27
|
+
```js
|
|
28
|
+
// vite.config.mjs
|
|
29
|
+
import { defineConfig } from 'vite';
|
|
30
|
+
import pluginStats from 'rollup-plugin-stats';
|
|
31
|
+
|
|
32
|
+
export default defineConfig({
|
|
33
|
+
// your vite config
|
|
34
|
+
plugins: [
|
|
35
|
+
// add it as the last plugin
|
|
36
|
+
pluginStats(),
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Rollup
|
|
42
|
+
|
|
24
43
|
```js
|
|
25
44
|
// rollup.config.mjs
|
|
26
|
-
import
|
|
45
|
+
import { defineConfig } from 'rollup';
|
|
46
|
+
import pluginStats from 'rollup-plugin-stats';
|
|
27
47
|
|
|
28
|
-
export default {
|
|
48
|
+
export default defineConfig({
|
|
49
|
+
// your rollup config
|
|
29
50
|
plugins: [
|
|
30
51
|
// add it as the last plugin
|
|
31
|
-
|
|
52
|
+
pluginStats(),
|
|
32
53
|
],
|
|
33
|
-
};
|
|
54
|
+
});
|
|
34
55
|
```
|
|
35
56
|
|
|
36
57
|
```js
|
|
37
58
|
// rollup.config.js
|
|
38
|
-
const
|
|
59
|
+
const { defineConfig } = require('rollup');
|
|
60
|
+
const pluginStats = require('rollup-plugin-stats');
|
|
39
61
|
|
|
40
|
-
module.exports = {
|
|
62
|
+
module.exports = defineConfig({
|
|
63
|
+
// your rollup config
|
|
41
64
|
plugins: [
|
|
42
65
|
// add it as the last plugin
|
|
43
|
-
|
|
66
|
+
pluginStats(),
|
|
44
67
|
],
|
|
45
|
-
};
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Rolldown
|
|
72
|
+
|
|
73
|
+
```js
|
|
74
|
+
// rolldown.config.js
|
|
75
|
+
import { defineConfig } from 'rolldown';
|
|
76
|
+
import pluginStats from 'rollup-plugin-stats';
|
|
77
|
+
|
|
78
|
+
export default defineConfig({
|
|
79
|
+
// your rolldown config
|
|
80
|
+
plugins: [
|
|
81
|
+
// add it as the last plugin
|
|
82
|
+
pluginStats(),
|
|
83
|
+
],
|
|
84
|
+
});
|
|
46
85
|
```
|
|
47
86
|
|
|
48
87
|
### Options
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-stats",
|
|
3
3
|
"description": "Output Rollup stats",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -17,9 +17,11 @@
|
|
|
17
17
|
"url": "https://relative-ci.com"
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
|
+
"vite",
|
|
20
21
|
"rollup",
|
|
21
22
|
"plugin",
|
|
22
|
-
"stats"
|
|
23
|
+
"stats",
|
|
24
|
+
"bundle-stats"
|
|
23
25
|
],
|
|
24
26
|
"main": "dist/index.cjs",
|
|
25
27
|
"module": "dist/index.mjs",
|
|
@@ -57,24 +59,33 @@
|
|
|
57
59
|
}
|
|
58
60
|
},
|
|
59
61
|
"devDependencies": {
|
|
60
|
-
"@eslint/js": "9.
|
|
62
|
+
"@eslint/js": "9.28.0",
|
|
61
63
|
"@release-it/conventional-changelog": "10.0.1",
|
|
62
64
|
"@rollup/plugin-typescript": "12.1.2",
|
|
63
65
|
"@tsconfig/node18": "18.2.4",
|
|
64
|
-
"@types/node": "22.15.
|
|
66
|
+
"@types/node": "22.15.29",
|
|
65
67
|
"dotenv": "16.5.0",
|
|
66
|
-
"eslint": "9.
|
|
67
|
-
"globals": "16.
|
|
68
|
+
"eslint": "9.28.0",
|
|
69
|
+
"globals": "16.2.0",
|
|
68
70
|
"husky": "8.0.3",
|
|
69
|
-
"memfs": "4.17.
|
|
71
|
+
"memfs": "4.17.2",
|
|
70
72
|
"prettier": "3.5.3",
|
|
71
|
-
"release-it": "19.0.
|
|
72
|
-
"rollup": "4.
|
|
73
|
+
"release-it": "19.0.3",
|
|
74
|
+
"rollup": "4.41.1",
|
|
73
75
|
"typescript": "5.8.3",
|
|
74
|
-
"typescript-eslint": "8.
|
|
75
|
-
"vitest": "3.1.
|
|
76
|
+
"typescript-eslint": "8.33.0",
|
|
77
|
+
"vitest": "3.1.4"
|
|
76
78
|
},
|
|
77
79
|
"peerDependencies": {
|
|
80
|
+
"vite": "^5.0.0 || ^6.0.0",
|
|
78
81
|
"rollup": "^3.0.0 || ^4.0.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependenciesMeta": {
|
|
84
|
+
"vite": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"rollup": {
|
|
88
|
+
"optional": true
|
|
89
|
+
}
|
|
79
90
|
}
|
|
80
91
|
}
|