rollup-plugin-analyze
v0.4.0
Published
A visualizer rollup analyzer
Downloads
38
Maintainers
Readme
rollup-plugin-analyze
A visualizer rollup analyzer
Examples
- https://shuoshubao.github.io/rollup-plugin-analyze
- https://shuoshubao.github.io/stats.html
Install
npm i -D rollup-plugin-analyze
Usage
rollup.config.js
const Analyze = require('rollup-plugin-analyze')
module.exports = {
input: 'lib/index.jsx',
output: {
file: 'dist/index.js',
format: 'iife'
},
plugins: [Analyze()]
}
vite.config.js
import react from '@vitejs/plugin-react'
import Analyze from 'rollup-plugin-analyze'
export default () => {
return {
plugins: [react(), Analyze()]
}
}