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"
			]
		}
	}
}

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

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

    Weekly Downloads

    6

    Version

    1.2.1

    License

    MIT

    Last publish

    Collaborators

    • rexhome7326