Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
add transform-imports plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Oct 23, 2019
1 parent ac46b76 commit b24a0c4
Show file tree
Hide file tree
Showing 5 changed files with 3,217 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/plugin-transform-imports/README.md
@@ -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.

0 comments on commit b24a0c4

Please sign in to comment.