Show info about files/packages included with your rollup bundle
94
Create a Rollup configuration that analyzes bundle sizes across multiple entry points. The configuration should demonstrate bundle size analysis for different input formats.
Create a rollup.config.js file that exports an array of three build configurations:
Each configuration should:
dist/ directoryCreate three source files in the src/ directory (main.js, admin.js, worker.js) that each import and use at least one function from lodash.
input: ["src/main.js", "src/worker.js"] creates two bundles with independent size reports @testinput: { main: "src/main.js", admin: "src/admin.js" } creates two named bundles with independent size reports @testinput: "src/main.js" creates one bundle with size report @test@generates
Provides bundle size analysis and reporting functionality for Rollup builds.
JavaScript module bundler used to create the bundles.
Utility library used in entry files to demonstrate bundle composition analysis.
Install with Tessl CLI
npx tessl i tessl/npm-rollup-plugin-sizesdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10