babel-plugin-transform-nej-to-commonjs
v0.0.4
Published
A babel plugin used to transform code using NEJ module system to CommonJS module system
Downloads
11
Readme
babel-plugin-transform-nej-to-commonjs
Transform code using NEJ module system to CommonJS module system.
Usage
In .babelrc
(Recommended)
.babelrc
:
{
"plugins": [
["transform-nej-to-commonjs", {
"nejPathAliases": {
"pro": "src/"
}
}]
]
}
For more information on NEJ path aliases, see the documentation of NEJ.
Options
Name: nejPathAliases
Type: Object
Description: Mapped NEJ path aliases. Will be replaced by the values given after transformation.