Skip to content

Commit 20f287a

Browse files
committed
chore: fix visualizer type
1 parent 01c881b commit 20f287a

2 files changed

Lines changed: 34 additions & 21 deletions

File tree

pnpm-lock.yaml

Lines changed: 29 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { includesAny, getPluginFunction } from "./utils"
22

3-
// common plugins
43
//@ts-ignore
54
import type resolve from "@rollup/plugin-node-resolve"
65
//@ts-ignore
@@ -23,6 +22,8 @@ import type babel from "@rollup/plugin-babel"
2322
import type { wasm } from "@rollup/plugin-wasm"
2423
// @ts-ignore
2524
import type { asc } from "rollup-plugin-assemblyscript"
25+
// @ts-ignore
26+
import type visualizer from "rollup-plugin-visualizer"
2627

2728
export type Plugin =
2829
| "js"
@@ -39,6 +40,7 @@ export type Plugin =
3940
| "commonjs"
4041
| "resolve"
4142
| "autoExternal"
43+
| "visualizer"
4244
| ["ts", typeof typescript, boolean?]
4345
| ["babel", typeof babel, boolean?]
4446
| ["coffee", typeof coffeescript, boolean?]
@@ -51,7 +53,8 @@ export type Plugin =
5153
| ["sourcemaps", typeof sourcemaps, boolean?]
5254
| ["commonjs", typeof commonjs, boolean?]
5355
| ["resolve", typeof resolve, boolean?]
54-
| ["autoExternal", typeof resolve, boolean?]
56+
| ["autoExternal", typeof autoExternal, boolean?]
57+
| ["visualizer", typeof visualizer, boolean?]
5558

5659
export function createPlugins(
5760
inputPluginsNames: Array<Plugin> = ["ts", "js", "json", "coffee"],

0 commit comments

Comments
 (0)