0.2.3 • Published 2 years ago
babel-plugin-redirect-this-property v0.2.3
Table of Contents
Quick Start
Install:
npm i babel-plugin-redirect-import -S # npm
pnpm i babel-plugin-redirect-import -S # pnpm
Config plugin in .babelrc
or babel-loader
.
{
"plugins": [["redirect-import", options]]
}
Options
specifierMap
- Type:
object
- Description: A map to describe import specifier.
Example:
{ identifierMap: { foo: 'bar', baz: 'a.b' } }
Example
Specify identifiers
Options:
{ identifierMap: { foo: 'bar', baz: 'a.b' } }
Example:
this.foo; this.baz; ↓ ↓ ↓ ↓ ↓ ↓ this.bar; this.a.b;
License
MIT © ULIVZ