Branch: master
Find file History
Latest commit 0cae695 Feb 10, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
pkg update packages Feb 10, 2019
src adds types and stuff, new pika pack version Jan 22, 2019
README.md readme first pass Feb 2, 2019
package-lock.json update packages Feb 10, 2019
package.json update packages Feb 10, 2019
tsconfig.json big rename Jan 22, 2019

README.md

@pika/plugin-build-web

A @pika/pack build plugin. Adds an ESM distribution to your package, built & optimized to run in most web browsers (and bundlers).

Install

# npm:
npm install @pika/plugin-build-web --save-dev
# yarn:
yarn add @pika/plugin-build-web --dev

Usage

{
  "name": "example-package-json",
  "version": "1.0.0",
  "@pika/pack": {
    "pipeline": [
      ["@pika/plugin-standard-pkg"],
      ["@pika/plugin-build-web"]
    ]
  }
}

For more information about @pika/pack & help getting started, check out the main project repo.

Result

  1. Adds a web distribution to your built package: dist-web/index.js
  2. ES Module (ESM) Syntax
  3. Transpiled to run on all browsers where ES Module syntax is supported.
  4. Adds a "module" entrypoint to your built package.json manifest.