A huge thanks to all of our contributors who made this release possible, including:
- @Akimyou, who fixed tricky issues in our HMR server
- @fubhy, who improved our
processpolyfilling logic - and @MoonBall, who made several improvements across our plugin ecosystem, including a new
config()hook!
See "Improvements / Bugfixes" below for a full list of relevant changes in this release:
⭐ NEW: Parallelized Builds
#808 - The build command now runs multiple builds in parallel, one job for every core available on your machine. Snowpack build plugins can take advantage of this new support by offloading computationally consuming work to child processes, allowing Node.js to parallelize the work. Several of our plugins already support this:
@snowpack/plugin-build-script: Builds each file by running a CLI command in a separate thread.@snowpack/plugin-babel: Spins up a pool of workers to run multiple Babel builds in parallel.esbuild: Our default JSX/TypeScript builder is built with Go, and supports parallel builds.
The result? ~2x faster builds when parallel-enabled plugins are used. If your plugins are not yet built to take advantage of this feature, there should be no impact on performance.
⭐ NEW: Snowpack + Pika Discord Community
🐛 All Improvements & Bugfixes
devd9a6623 fix remote import url handlingdevc5490fd Improve HMR (#827)dev07e4728 fix install error log to be more helpfuldev6950266 support the html extension in dev server (#870)build582d0ed Support treeshaking when importing React by namespace (#879)buildee05c28 ignore build directory in default build (#874)installdde6a77 feat: add rollup plugin for polyfilling the global process object (#854)plugins5b0fe76 add config() hook (#864)plugins42493b6 update transform plugin to use id instead of filepath (#837)plugins:webpack17e93b6 Webpack: fix wrong logic when extendConfig's plugin has options. (#842)create-snowpack-app:svelte149515f Svelte: fix tsconfig for svelte templatecreate-snowpack-app:preactc9f3886 Preact: bump prefresh version
