0.2.3 • Published 1 year ago

babel-plugin-redirect-this-property v0.2.3

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

0.2.3

1 year ago

0.2.2

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago