Releases: FredKSchott/snowpack
v1.5.1
v1.5.0
New: Improved --stat
Output
Thanks to @rajasegar, we now have Brotli & Gzip size info in our --stat
output! With some new cleanup on top of that, this may become the new default output mode for Snowpack in a future version.
- Cleanup stats code, output (#223) e9fd3ab
- add stat to help output, fix #219 8441896
- Add file path to
--stat
output (#217) 404b1f2 - chore: add gzip and brotli size to stat output (#216) 52ac6a1
New: Plugin Suggestions
Thanks to @DangoDev's added Rollup plugin support in v1.4.0, we can now recommend plugins when one of your dependencies attempts to import a non-standard file type (like, for example, import 'styles.css'
).
New: WASM-Powered Parser
Thanks to @alex-saunders for replacing our initial Babel-powered import scanner with the WASM-powered es-module-lexer for some pretty impressive speed improvements. Running Snowpack in production (with all optimizations turned on) on www.pika.dev is now down from 24 seconds -> 16 seconds!
Small Fixes
v1.4.0
🆕 Custom install plugins (via Rollup)
You might encounter non-JS npm packages that can only run with additional parsing/processing. Svelte packages, for example, commonly include .svelte
files that will require additional tooling to parse and install for the browser.
In these rare cases, you can now add custom Rollup plugins to your Snowpack config to handle these special files:
// snowpack.config.js
module.exports = {
rollup: {
plugins: [require('rollup-plugin-svelte')()]
}
};
Thanks to @DangoDev for identifying the problem, proposing the solution, and implementing the PR.
Other fixes and improvements
v1.3.1
v1.3.0
🆕 --stat
output details mode
We now have detailed output for installs, including size change information when a package is added/removed. Great for CI, and may even become our default output mode in the future.
Huge thanks to @alex-saunders for tackling this one!
🆕 Configuration file support
Say goodbye to CLI flags... or don't! We now support all CLI flags as config thanks to our new snowpack.config.json
, snowpack.config.js
, and package.json
config parser (powered by cosmiconfig. Mix and match static config with ad-hoc CLI flags as you need.
Huge thanks to @DangoDev for owning this (very overdue!) project from start to finish!
🆕 Bug fixes and documentation improvements!
- New "Who's using Snowpack?" section of the docs
- deep entrypoint import support (#197)
- package manifest resolution improvements (#199) ba70b4a6c
- Fixed issue where CLI would stay open instead of exit on error
v1.2.0
Note: This is an important update for Node v13 users that adds support for export maps, a new feature that some packages are beginning to adopt. For node <=v12, this update is encouraged but not required.
Thanks to collaborators @DangoDev & @monchi for their help with this release!
Notable Changes
- Add export map support for node v13 (#193) eae89aa
- Allow importing of packages not explicitly mentioned in package.json (#192) f825df7
- Fix pika-treeshake on Windows (#178) 2ce922d
- Change babel plugin to use import map as its source of truth (#189) 090ac06
- update react error message (#188) 47f9b97
- update deps 72b9d09
- Update docs
v1.1.4
- Redo the dedupe fix from v1.1.3, which didn't catch all errors 2db3ca0
v1.1.3
Important Fix
- Fix a "dedupe" regression in our internal Rollup engine (#186) b29c0c6
- Unless you're using a package-lock/yarn.lock, you'll need to update Snowpack to fix an issue with how we pass our dedupe config property to our internal Rollup engine
- updated docs
v1.1.0
NEW: --nomodule Support
- Tweet announcement: To be linked...
- New Section - Legacy Browser Support: https://www.snowpack.dev/#legacy-browser-support
- New Section -
--nomodule
: https://www.snowpack.dev/#supporting-legacy-browsers - Shout out to @DangoDev for the work on this feature!