1.2.1 • Published 7 years ago

babel-plugin-replace-import-src-to-where v1.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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

7 years ago

1.1.0

7 years ago

1.0.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago