Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

babel-plugin-replace-import-src-to-where

1.2.1 • Public • Published

babel-plugin-replace-import-src-to-where

make your import or require path from this

import aaa from "src/file/aaa/path";
var bbb = require("src/file/bbb/path");
var config = {
    ccc: "src/file/ccc/path"
}

to this

import aaa from "lib/file/aaa/path";
var bbb = require("lib/file/bbb/path");
var config = {
    ccc: "lib/file/ccc/path"
}

Install

$ npm install babel-plugin-replace-import-src-to-where

Usage for your .babelrc

{
    "env": {
        "dev": {
            "plugins": [
                "replace-import-src-to-where"
            ]
        }
    }
}

Install

npm i babel-plugin-replace-import-src-to-where

DownloadsWeekly Downloads

5

Version

1.2.1

License

MIT

Last publish

Collaborators

  • avatar