Skip to content

Commit 4ea2465

Browse files
authored
fix plugin import (#591)
* build: Run tsc before build * fix: Plugin - import getByteSize
2 parents 3f582e6 + 2dd0398 commit 4ea2465

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
},
4848
"scripts": {
4949
"prebuild": "rimraf ./dist",
50-
"build": "rollup -c rollup.config.mjs",
50+
"build": "tsc && rollup -c rollup.config.mjs",
5151
"lint": "exit 0",
5252
"test:unit": "vitest test/unit",
5353
"test:package": "cd test/package && vitest",

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import extractStats, { type StatsOptions } from 'rollup-plugin-stats/extract';
33

44
import { type BundleTransformOptions, bundleToWebpackStats } from './transform';
55
import { type StatsWrite, statsWrite } from './write';
6-
import { formatFileSize, resolveFilepath } from './utils';
6+
import { formatFileSize, getByteSize, resolveFilepath } from './utils';
77

88
const PLUGIN_NAME = 'webpackStats';
99

0 commit comments

Comments
 (0)