Merge pull request #80 from phated/phated/rollup-visualizer
feat: add rollup visualizer plugin for iife bundle
This commit is contained in:
commit
df64720f80
1
.gitignore
vendored
1
.gitignore
vendored
@ -66,3 +66,4 @@ typings/
|
|||||||
tmp
|
tmp
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
stats.html
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||||
import commonJS from "@rollup/plugin-commonjs";
|
import commonJS from "@rollup/plugin-commonjs";
|
||||||
import virtual from '@rollup/plugin-virtual';
|
import virtual from "@rollup/plugin-virtual";
|
||||||
import replace from '@rollup/plugin-replace';
|
import replace from "@rollup/plugin-replace";
|
||||||
|
import visualizer from "rollup-plugin-visualizer";
|
||||||
|
|
||||||
const empty = 'export default {}';
|
const empty = "export default {}";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
input: "main.js",
|
input: "main.js",
|
||||||
@ -27,5 +28,6 @@ export default {
|
|||||||
nodeResolve(),
|
nodeResolve(),
|
||||||
commonJS(),
|
commonJS(),
|
||||||
replace({ "process.browser": !!process.env.BROWSER }),
|
replace({ "process.browser": !!process.env.BROWSER }),
|
||||||
|
visualizer(),
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"mocha": "^7.1.1",
|
"mocha": "^7.1.1",
|
||||||
"rollup": "^2.36.2",
|
"rollup": "^2.36.2",
|
||||||
"rollup-plugin-terser": "^7.0.2"
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
|
"rollup-plugin-visualizer": "^4.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user