rollup-plugin-stats
Advanced tools
Comparing version
import { Plugin } from 'rollup'; | ||
interface RollupStatsOptions { | ||
import { type StatsOptions } from './extract'; | ||
export type RollupStatsOptions = { | ||
/** | ||
@@ -8,4 +9,5 @@ * JSON file output fileName | ||
fileName?: string; | ||
} | ||
declare const rollupStats: (options?: RollupStatsOptions) => Plugin; | ||
stats?: StatsOptions; | ||
}; | ||
declare function rollupStats(options?: RollupStatsOptions): Plugin; | ||
export default rollupStats; |
{ | ||
"name": "rollup-plugin-stats", | ||
"version": "1.0.0-beta.0", | ||
"version": "1.0.0-beta.3", | ||
"license": "MIT", | ||
@@ -40,3 +40,3 @@ "private": false, | ||
"format": "prettier --write .", | ||
"test:unit": "echo \"No tests\" && exit 0", | ||
"test:unit": "vitest test/unit", | ||
"test:package": "vitest test/package", | ||
@@ -56,2 +56,4 @@ "bump": "./scripts/bump.sh", | ||
"@tsconfig/node18": "^18.2.4", | ||
"@types/lodash": "^4.17.13", | ||
"@types/node": "^18.19.68", | ||
"dotenv": "^16.4.7", | ||
@@ -67,3 +69,6 @@ "eslint": "^9.17.0", | ||
"vitest": "^2.1.8" | ||
}, | ||
"dependencies": { | ||
"lodash": "^4.17.21" | ||
} | ||
} |
@@ -52,2 +52,4 @@ # rollup-plugin-stats | ||
- `filename` - the JSON filename relative to the build folder, default: `stats.json` | ||
- `fileName` - the JSON filename relative to the build folder, default: `stats.json` | ||
- `stats` | ||
- `source` - output asset/chunk/module source |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11870
117.36%9
12.5%141
281.08%55
3.77%1
Infinity%16
14.29%+ Added
+ Added