2.0.0 • Published 4 years ago

pika-plugin-legacy-browser v2.0.0

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

pika-plugin-legacy-browser

Build a complete package for legacy browsers using @pika/pack.

Installation

npm i @pika/pack pika-plugin-legacy-browser

Usage

Like other pika plugins, just add to your pipeline after @pika/plugin-standard-pkg or @pika/plugin-ts-standard-pkg.

{
    "@pika/pack": {
        "pipeline": [
            ["@pika/plugin-ts-standard-pkg"],
            ["@pika/plugin-build-web"],
            [
                "pika-plugin-legacy-browser",
                {
                    "name": "MyProject"
                }
            ]
        ]
    }
}

Options

OptionValuesRequiredDescription
nameyesGive your UMD or IIFE a name
format"iife" | "umd"noDefault: "iife". Set the desired format.
sourcemapbooleannoSet true to enable sourcemaps
globalsstring[]noSpecify globals used by your project.
externalstring[]noSpecify externals used by your project.
minifybooleannoMinify your browser build
namedExportsobjectnoExplicitly resolve not found exports from external modules
babelbabelConfignoProvide custom Babel plugins or presets