@pika/plugin-transform-imports
v0.9.2
Published
A @pika/pack plugin: rewrite imports, if you need that sort of thing.
Downloads
5
Readme
@pika/plugin-transform-imports
A @pika/pack build plugin. rewrite imports, if you need that sort of thing.
Note: This is an advanced plugin that 99.99% of people won't need.
Install
# npm:
npm install @pika/plugin-transform-imports --save-dev
# yarn:
yarn add @pika/plugin-transform-imports --dev
Usage
{
"name": "example-package-json",
"version": "1.0.0",
"@pika/pack": {
"pipeline": [
["@pika/plugin-ts-standard-pkg"],
["@pika/plugin-transform-imports", { /* options: see below */ }],
/* your other build plugins */
]
}
}
For more information about @pika/pack & help getting started, check out the main project repo.
Options
"rewrite"
: An object map of imports to rewrite in some of the dist directories.