Skip to content

Conversation

@marcofugaro
Copy link
Contributor

Related issue: -

Description

We were using rollup-plugin-filesize to show the minified size in the test-treeshake script. However the minified sized were skewed because it was calculating them internally.

I've updated the script to use terser to compute the minified size. Terser is what most people use nowadays to minify, so it's more accurate.

The script now produces index.bundle.min.js and an unminified index.bundle.js for human inspection, this is the new output:

@mrdoob mrdoob added this to the r128 milestone Apr 14, 2021
@mrdoob mrdoob merged commit 10a33e1 into mrdoob:dev Apr 14, 2021
@mrdoob
Copy link
Owner

mrdoob commented Apr 14, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants