Skip to content

v0.5.0

Compare
Choose a tag to compare
@FredKSchott FredKSchott released this 05 Aug 06:33

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 or pika-web (if already installed)

Import map support!

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 your package.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.5.0-pre.3...v0.5.0