To support node >16, because rollup-plugin-size-snapshot has a dependency to webpack.
Previous output:
src/index.js → dist/index.js...
Computed sizes of "index.js" with "esm" format
bundler parsing size: 51,890 B
browser parsing size (minified with terser): 22,365 B
download size (minified and gzipped): 6,772 B
treeshaked with rollup with production NODE_ENV and minified: 214 B
import statements size of it: 210 B
treeshaked with webpack in production mode: 2,341 B
created dist/index.js in 1.4s
To support node >16, because
rollup-plugin-size-snapshot
has a dependency towebpack
.Previous output:
New output: