Releases: FredKSchott/snowpack
v1.0.4
- update docs
- Fixed 'missing package.json' error message #143 (@AyoAlfonso)
- Updated deprecated rollup imports
v1.0.3
V1 RELEASE! @pika/web is now Snowpack
Major Change: Rename!
Major Change: Tree-shaking!
A HUGE thanks to @DangoDev for this feature. When Snowpack is run with the --optimize
flag it is able to analyze your application source code to detect exactly which dependency exports are used in your application. Anything unused is removed from the optimized dependency installation.
Major Change: --include
(Automatic import detection)
Another great contribution from @DangoDev. Tree-shaking wouldn't have been possible without the ability to detect your application imports automatically. Even without the tree-shaking component, being able to automatically detect which dependencies are needed gets rid of a ton of configuration in old versions.
Major Change: A new docs site!
Minor Changes
- Added UC Browser to default "browserlist" ignore string. UC Browser doesn't support ESM (yet) so this may result in a better-optimized default env target for
--optimize
.
I'll be promoting this more tomorrow (on Twitter, etc) and cleaning up the docs site tonight, but I wanted to get the actual release out there asap for anyone who wanted to try it out. Thanks for all your hard work everyone!
v0.6.1
v0.6.0 was accidentally broken on publish, v0.6.1 is the next release after v0.5.3
New Features
- (Experimental) Non-JS static asset support! This support actually went out with v0.5.2, but with v0.6.0 we'll start to talk about it more. Please leave feedback on both config and developer experience!
- Monorepo support! Use @pika/web in a monorepo where dependencies may live a level or two above the current working directory.
- Babel as a production optimize step: In v0.5.0 we introduced running your deps through Babel. In v0.6.0 we've scaled that back to only run with the
--optimize
flag or the new explicit--babel
flag. We recommend usingpika install
normally, and then runningpika install --optimize
before pushing to production.
v0.5.3
v0.5.2
Big shoutout to @calebdwilliams for landing our two new features in this release: Glob support & experimental non-JS static asset support!
Breaking Changes
- None
Notable Changes
v0.5.1
v0.5.0
Breaking Changes
None!
Big New Features & Changes
New Interface! pika install
- A new
pika
@pika/cli is included with every @pika/pack install. - You can still call this package directly as before via
npx @pika/web
orpika-web
(if already installed)
Import map support!
- More info: #74
- A great article on what this means and how it works: https://dev.to/open-wc/on-the-bleeding-edge-3cb8
Dependency transpilation support!
From the README:
@pika/web installs ES Module (ESM) dependencies from npm, which run wherever ESM syntax is supported. This includes 86%+ of all browsers in use today: All modern browsers (Firefox, Chrome, Edge, Safari) going back at least a year, but notably not IE11 or UC Browser for Android.
Additionally, @pika/web runs all dependencies through Babel via
@preset/env
to transpile any language features not yet supported in most modern browsers. This is important since many recommend that you publish modern ES2019 JavaScript to npm, which not all browsers support. You can customize how dependencies are transpiled by setting your own "browserslist" key in yourpackage.json
manifest:
/* package.json - Recommended target for ESM-supporting browsers (@pika/web default) */
"browserslist": ">0.75%, not ie 11, not op_mini all"
Common.js support!
Common.js web modules are now supported, via Rollup's CJS plugin. Common.js dependencies that are included in the "webDependencies" whitelist are now converted to ESM during the web_modules/
directory install. Common.js packages are still skipped by default if no whitelist is provided.
See #62 for more info.
Other Changes
v0.4.4
- Small fix to incorrect repository URL 7ea605a