11import { includesAny , getPluginFunction } from "./utils"
22
3- // common plugins
43//@ts -ignore
54import type resolve from "@rollup/plugin-node-resolve"
65//@ts -ignore
@@ -23,6 +22,8 @@ import type babel from "@rollup/plugin-babel"
2322import type { wasm } from "@rollup/plugin-wasm"
2423// @ts -ignore
2524import type { asc } from "rollup-plugin-assemblyscript"
25+ // @ts -ignore
26+ import type visualizer from "rollup-plugin-visualizer"
2627
2728export 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
5659export function createPlugins (
5760 inputPluginsNames : Array < Plugin > = [ "ts" , "js" , "json" , "coffee" ] ,
0 commit comments