rollup-plugin-stats 1.3.8-beta.1 → 1.3.8

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 +26 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -21,28 +21,50 @@ yarn add --dev rollup-plugin-stats
21
21
 
22
22
  ## Configure
23
23
 
24
+ ### Rollup
25
+
24
26
  ```js
25
27
  // rollup.config.mjs
28
+ import { defineConfig } from 'rollup';
26
29
  import stats from 'rollup-plugin-stats';
27
30
 
28
- export default {
31
+ export default defineConfig({
32
+ // your rollup config
29
33
  plugins: [
30
34
  // add it as the last plugin
31
35
  stats(),
32
36
  ],
33
- };
37
+ });
34
38
  ```
35
39
 
36
40
  ```js
37
41
  // rollup.config.js
42
+ const { defineConfig } = require('rollup');
38
43
  const stats = require('rollup-plugin-stats');
39
44
 
40
- module.exports = {
45
+ module.exports = defineConfig({
46
+ // your rollup config
41
47
  plugins: [
42
48
  // add it as the last plugin
43
49
  stats(),
44
50
  ],
45
- };
51
+ });
52
+ ```
53
+
54
+ ### Rolldown
55
+
56
+ ```js
57
+ // rolldown.config.js
58
+ import { defineConfig } from 'rolldown';
59
+ import stats from 'rollup-plugin-stats';
60
+
61
+ export default defineConfig({
62
+ // your rolldown config
63
+ plugins: [
64
+ // add it as the last plugin
65
+ stats(),
66
+ ],
67
+ });
46
68
  ```
47
69
 
48
70
  ### 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.8-beta.1",
4
+ "version": "1.3.8",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "repository": {