This repository has been archived by the owner on Apr 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac46b76
commit b24a0c4
Showing
5 changed files
with
3,217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# @pika/plugin-transform-imports | ||
|
||
> A [@pika/pack](https://github.com/pikapkg/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 | ||
|
||
```sh | ||
# npm: | ||
npm install @pika/plugin-transform-imports --save-dev | ||
# yarn: | ||
yarn add @pika/plugin-transform-imports --dev | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
```js | ||
{ | ||
"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](https://github.com/pikapkg/pack). | ||
|
||
|
||
## Options | ||
|
||
- `"rewrite"`: An object map of imports to rewrite in some of the dist directories. |
Oops, something went wrong.