Major Change: Rename!
Major Change: Tree-shaking!
A HUGE thanks to @DangoDev for this feature. When Snowpack is run with the --optimize
flag it is able to analyze your application source code to detect exactly which dependency exports are used in your application. Anything unused is removed from the optimized dependency installation.
Major Change: --include
(Automatic import detection)
Another great contribution from @DangoDev. Tree-shaking wouldn't have been possible without the ability to detect your application imports automatically. Even without the tree-shaking component, being able to automatically detect which dependencies are needed gets rid of a ton of configuration in old versions.
Major Change: A new docs site!
Minor Changes
- Added UC Browser to default "browserlist" ignore string. UC Browser doesn't support ESM (yet) so this may result in a better-optimized default env target for
--optimize
.
I'll be promoting this more tomorrow (on Twitter, etc) and cleaning up the docs site tonight, but I wanted to get the actual release out there asap for anyone who wanted to try it out. Thanks for all your hard work everyone!