0.9.2 • Published 4 years ago

@pika/plugin-build-umd v0.9.2

Weekly downloads
55
License
MIT
Repository
github
Last release
4 years ago

@pika/plugin-build-umd

A @pika/pack build plugin. Adds a UMD distribution to your package, built to be flexible & run on legacy browsers & environments. If you're looking to build for web browsers and/or UNPKG, we recommend using @pika/plugin-build-web instead.

Install

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

Usage

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

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

Options

  • "sourcemap" (Default: "true"): Adds a source map for this build.
  • "name" (Defaults: your package name): Sets the name that your package is attached to on the window object.
  • "entrypoint" (Default: "umd:main"): Customize the package.json manifest entrypoint set by this plugin. Accepts either a string, an array of strings, or null to disable entrypoint. Changing this is not recommended for most usage.

Result

  1. Adds a UMD distribution to your built package: dist-umd/index.js
  2. UMD Syntax
  3. All dependencies bundled with the package.
  4. Transpiled to run on all actively used and maintained browsers (excluding IE 11 and Opera Mini).
  5. Adds a "umd:main" entrypoint to your built package.json manifest.
0.9.0

4 years ago

0.9.2

4 years ago

0.8.3

4 years ago

0.9.1

4 years ago

0.8.2

4 years ago

0.8.1

4 years ago

0.8.0

4 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.1

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.16

5 years ago

0.3.15

5 years ago

0.3.14

5 years ago

0.3.13

5 years ago

0.3.12

5 years ago

0.3.11

5 years ago

0.3.10

5 years ago

0.3.9

5 years ago

0.3.8

5 years ago

0.3.7

5 years ago