@pika/plugin-standard-pkg v0.9.2
@pika/plugin-standard-pkg
A @pika/pack build plugin. Builds your package source as standard, ES2018 JavaScript. Supports TypeScript. Supports experimental language features via Babel.
Note: If your package is written in TypeScript, check out
@pika/plugin-ts-standard-pkgwhich uses TypeScript internally to build your package instead of Babel.
Install
# npm:
npm install @pika/plugin-standard-pkg --save-dev
# yarn:
yarn add @pika/plugin-standard-pkg --devUsage
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-standard-pkg"]
]
}
}For more information about @pika/pack & help getting started, check out the main project repo.
Result
Unlike other build plugins, this plugin reads directly from your package src/ directory. Make sure your code exists in a src/ directory, with an src/index.js or src/index.ts file as the package entrypoint.
Other build plugins will depend on this standard ES2018 distribution, so include this plugin early in your build pipeline for others to use.
- Adds a modern ES2018 distribution to your built package:
dist-src/ - TypeScript supported automatically.
- Experimental ESNext JavaScript features are handled via your existing Babel config (
.babelrcor similar.) - Adds an "esnext" entrypoint to your built
package.jsonmanifest.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago