Releases: FredKSchott/snowpack
v2.5.3
Fixes and Improvements!
- Expose JS install function (
unstable_Install
) (#518) 22b4362 - support type-only packages (#521) a863c8f
- improve resolve logic for folders (#515, #519)
- Fix warning message bug (#512) ab78391
- Remove outdated homepage from Snowpack config (#511) df3a7e4
- Adds secure option to the devOptions 1e1472b
- Update src-file-extension-mapping.ts fb9b672
- Collection of small fixes (#499) 6b1eba6
- Update docs
v2.5.2
v2.5.1
v2.5.0
Greater Customization & Control
- Add
buildOptions.baseUrl
(#480) 859590f - Add
%PUBLIC_URL%
support (#474) f268af6 - Add custom
web_modules/
directory location (#483) 711a816 - Add
buildOptions.metaDir
option (#456) b76ce6e - Add
installIOptions.namedExports
to support named exports in CJS packages (#452) 35112ac
Fixes!
- remove flash of unrendered content for hmr 9012752
- paint shouldn't clear install errors earlier in dev command (#486) a4111a4
- handle errors in dev server d0a7e41
- improve startup time (#482) 4f9403b
- Add HMR support for linked & local npm packages (#470) 3280de3
- cleanup unresolved error messages (#473) 5adee6d
- add check to only transform js file imports 58dba0e
- Fix HMR on secure server (#459) 5366dfb
- add
.mjs
to file extension map f79ec28 - add
.elm
to file extension map a18f314 - html file changes should always trigger a full page reload 97f6c1f
- Offer alternative port if specified port is busy 33cfd1c
v2.4.0
Add HTTPS/HTTP2 server (#422) 3266d9b
Snowpack now supports the snowpack dev --secure
flag, which will run your dev server via HTTP2. This is much faster than HTTP/1.1 for unbundled applications like Snowpack's dev app.
HTTP/2 is powered by HTTPS, which requires a bit of additional setup for your dev environment to work properly. On your first run of Snowpack with the --secure
flag, you'll be shown instructions to generate credentials to use for HTTPS.
Small Fixes & Improvements
- Add support for devOptions.hmr (#427) c489384
- Fix treeshaking bug 72933b3
- Fix issue with babel macro matching 78a27ff
- Fix node polyfill plugin bug a29339a
- Improve node polyfill error handling 171ae8e
- Fix readline capture issue with simple stdin listener 546c94e
- Fix HMR support for CSS modules (#438) 4ebb6c8
- Fix install scanner to scan html files for JS deps as well 1727f88
- Fix react-table esm workaround 6742556
- Fix .svx usage 07b0fb1
v2.3.1
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