Skip to content

Just testing out treeshaking a three.js app with rollup

Notifications You must be signed in to change notification settings

2pha/three-rollup-treeshake-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Testing out tree shaking a three.js app with rollup.
Not sure if I'm using rollup propery.

Rollup:
Bundle size: 545.26 KB, Gzipped size: 112.07 KB

Rollup + uglify:
Bundle size: 305.55 KB, Gzipped size: 75.17 KB

Rollup + Closure Compiler (SIMPLE):
Bundle size: 308.5 KB, Gzipped size: 75.77 KB

Rollup + Closure Compiler (ADVANCED):
Bundle size: 241.33 KB, Gzipped size: 63.7 KB
(shit load of compiler errors and doesn't work)

install: npm install
build: npm run build

About

Just testing out treeshaking a three.js app with rollup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published