babel-plugin-aliases-meteor

1.0.4 • Public • Published

babel-plugin-aliases

A babel plugin to transform aliases which also works with meteor. It also works with webpack and ava etc.

Installation

npm i --D babel-plugin-aliases

Usage

{
  "plugins": [
    ["babel-plugin-aliases", [{
      "path": "/some/deep/path",
      "alias": "alias"
    }]]
  ]
}

This will transform all import statements that import alias to path.

Example

Imagine there is a file inside /some/path/file.js

import module from 'alias/file.js';

This will transform into

import module from '../deep/path/file.js';

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i babel-plugin-aliases-meteor

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    33.8 kB

    Total Files

    15

    Last publish

    Collaborators

    • dhamaniasad