Releases: FredKSchott/snowpack
[email protected]
New optimized build plugin: @snowpack/plugin-optimize
Thanks to @drwpow for spearheading this work.
HMR/Livereload enabled for build --watch
mode
@MoonBall led this project (#1008) from start to finish 👏 👏 👏
Assorted fixes and improvements!
- 0c5390d - feat(plugin-vue): Improve TS, JSX support (#984) @Akimyou
- fa4190d - feat(plugin-webpack): implement html minifier (#1015) @stefanfrede
- 3564ee5 - fix(plugin-webpack): allow omitting options (#1047) @ralphtheninja
- 2926370 - fix: Inline process.env variable references directly when installing. (#1044) @pkaminski
- 1667143 - fix: Windows process exit properly. (#1022) @pkaminski
- 936b524 - fix: casing of module locations to match that used by Rollup. (#999) @pkaminski
A huge thanks to all of our contributors for this release!
[email protected]
Bug fixes and more!
- 2966ec4 - fix css import url resolver (#1001)
- 549caa2 - remove source mapping url
- 263c2b1 - Remove the process polyfill's dependency on window, so it can run in web workers. (#994)
- 27ce2db - fix greedy css import regex (#991)
- 5df8c55 - Fix HTML_JS_REGEX (#986)
- ac04f91
@snowpack/app-scripts-preact
- update @prefresh/snowpack dep - 2be375a
@snowpack/plugin-webpack
- add manifest to webpack plugin (#983)
[email protected]
[email protected]
🆕 Native CSS @import
s
Snowpack now supports automatic scanning and resolution of your native CSS @import
statements. Use it to load CSS, Sass, Less, and any compile-to-CSS language you already have defined in your build pipeline. We even support npm package imports.
See our documentation for more info: https://www.snowpack.dev/#css-imports-(%40import)
Learn more about CSS @import
syntax: https://developer.mozilla.org/en-US/docs/Web/CSS/@import
Other Fixes and Improvements
- 43cf5ce - fix: handle comments in import specifiers (#594
- b112148 - fix: handle plugin buffer response (#950)
- d484739 - fix: tree shaking package when imports include file extensions (#972) @MoonBall
- 0398fc3 - fix: support
snowpack.config.cjs
config files, fortype: module
projects (#968) @lewisl9029 - 5372aab - fix: %PUBLIC_URL% replacement in dev server (#957)
- de040f2 - fix: exit process after success (#956) @lukeed
- 2905af5 - fix: console logger methods log all arguments passed (#951)
- 75b23c3 - fix: proxy file when dev (#940) @MoonBall
- 843cf9e - code cleanup (#949) @MoonBall
New Logos!
CircleHD (@circlehddev) & Tongdun added to our "Who's using Snowpack" section!
[email protected]
[email protected]
🎊 Bug Fixes & Improvements Galore!
- Improve module resolution error messages (#929) <@silverwind>
- fix: wrong proxy path of package assets (#933) <@MoonBall>
- fix: typo (#935) <@chenxsan>
- fix: bad baseUrl normalization (#919) <@FredKSchott>
- fix: full process object polyfill (#920) <@MoonBall>
- fix: quick alias code cleanup (#914) <@FredKSchott>
- fix: partial request responses (#794) <@stramel>
- fix: alias match function (#890) <@MoonBall>
- fix: encoding (#882)
- fix: no web_modules proxy file (#906) <@MoonBall>
- fix: open tab twice when
openChrome
occurs error (#894) <@MoonBall> - fix: namedExport of react-dom/server.js (#885) <@MoonBall>
- remove: outdated, legacy web_modules path handling (#917) <@FredKSchott>
- feat: replace
%SNOWPACK_PUBLIC_*%
and%MODE%
environment variables in HTML (#900) <@gr2m> - fix: ignore
SNOWPACK_PUBLIC_
env variable when generating__snowpack__/env.js
(#924) <@gr2m> - Documentation improvements on www.snowpack.dev
2.9.0 - parallelized builds are here!
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
process
polyfilling 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
dev
d9a6623 fix remote import url handlingdev
c5490fd Improve HMR (#827)dev
07e4728 fix install error log to be more helpfuldev
6950266 support the html extension in dev server (#870)build
582d0ed Support treeshaking when importing React by namespace (#879)build
ee05c28 ignore build directory in default build (#874)install
dde6a77 feat: add rollup plugin for polyfilling the global process object (#854)plugins
5b0fe76 add config() hook (#864)plugins
42493b6 update transform plugin to use id instead of filepath (#837)plugins:webpack
17e93b6 Webpack: fix wrong logic when extendConfig's plugin has options. (#842)create-snowpack-app:svelte
149515f Svelte: fix tsconfig for svelte templatecreate-snowpack-app:preact
c9f3886 Preact: bump prefresh version
2.8.0
⭐ New
snowpack build --watch
mode: have snowpack build to disk on every file change. Great if you are running your own server, such as Rails (#782).@snowpack/plugin-vue
has a new error output (#809). Give it a try!- The
app-template-react
template now comes preloaded with React refresh! (#829)
🐛 Improvements / Bugfixes
- Dev server swallowing console logs has been fixed (#762, #807, #809). Also as a bonus, we dropped
ora
as a dependency, lightening the build a little and improving Windows output. - CommonJS support has been improved (#783)
- Many module resolution & alias fixes for more stable development (#777, #554, #789, #796)