npm snowpack 2.3.1

latest releases: 3.8.8, 3.8.7, 3.8.7-rc.0...
3 years ago

Upgrade Rollup for Better CJS Support (#421)

The Rollup team has done some great work on their ESM<->Common.js interop story, and now supports many more packages that previously caused problems (ex: Formik). This release upgrades Snowpack to the latest set of Rollup dependencies to take advantage of these great features.

If you've had trouble with dependencies in the past, check out this new version.

NOTE: This upgrade deprecates our use of namedExports config in your Snowpack config file. This is considered "no longer needed" by Rollup and safe to remove.

Better Treeshaking Support

#421 also let us add back in our Snowpack v1 support for better tree-shaking when you build for production. This will greatly increase the performance of some projects for both bundled and unbundled builds. In one case, a FluentUI user saw their dependency size drop by 80%! 😱

Treeshaking is enabled by default when you run snowpack build, but you can control it yourself via the --treeshake and --no-treeshake flags.

Small Fix

Note: v2.3.0 was published with an accidental breaking change, please use v2.3.1

v2.2.4...v2.3.1

Don't miss a new snowpack release

NewReleases is sending notifications on new releases.