Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
rollup-analyzer-plugin
Advanced tools
Analyze file sizes of rollup bundled imports
Rollup Analyzer gives you a quick look at what's taking up space in your bundle.
Adding as a plugin to your rollup config or build script will print a well formatted analysis to the console upon bundling.
If using Rollup's CLI to bundle with no additonal config, pass
-c node:rollup-analyzer-config
to print a well formatted analysis to your console.
Full analysis module, giving you access to the complete analysis object or well formatted analysis text for CI and build usage.
$ npm install --save-dev rollup-analyzer-plugin
import analyze from 'rollup-analyzer-plugin'
const opts = {limit: 5, filter: [], root: __dirname}
export default {
entry: 'module.js',
dest: 'index.js',
format: 'cjs',
plugins: [analyze(opts)]
}
import { rollup } from 'rollup'
const opts = {limit: 5, filter: [], root: __dirname}
import analyze from 'rollup-analyzer-plugin'
rollup({
entry: 'main.js',
plugins: [analyze(opts)]
}).then(...)
logged to console on rollup completion
-----------------------------
Rollup File Analysis
-----------------------------
bundle size: 1.146 MB
-----------------------------
file: \node_modules\html5-history-api\history.js
size: 38.502 KB
percent: 3.36%
dependents: 1
- \app\modules\page.js
-----------------------------
file: \node_modules\pikaday\pikaday.js
size: 34.683 KB
percent: 3.03%
dependents: 1
- \app\helpers\transformer.js
...
false
null
null
process.cwd()
MIT © Andrew Carpenter
FAQs
Analyze file sizes of rollup bundled imports
The npm package rollup-analyzer-plugin receives a total of 30 weekly downloads. As such, rollup-analyzer-plugin popularity was classified as not popular.
We found that rollup-analyzer-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.