Skip to content

DianaSuvorova/treeshaking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exploring treeshaking with rollup and webpack 4.

  1. Treeshaling only works for named exports. If object is exported and only part of it is imported, the whole object will end up in the bundle.

Source file: src/index.js, rollup's bundle: ./dist/bundle_rollup.js

  1. Treeshaking with webpack only works during minification process. Source So I couldn't directly compare webpack and rollup bundles but seems like the result is the same.

About

Exploring treeshaking with rollup and webpack 4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published