0.5.0 • Published 7 years ago
babel-plugin-transform-omodule-namespace v0.5.0
babel-plugin-transform-omodule-namespace
This is a babel plugin to transform omodule structure scope constants.
Installation
$ npm install babel-plugin-transform-omodule-namespace --save-devConfiguration
.babelrc
{
"plugins": "transform-omodule-namespace"
}Options
rootPath: (Default: project root) - specify the root of omodule structure.
{
"plugins": [
[
"transform-omodule-namespace",
{ "rootPath": "./src" }
]
]
}namespacePrefix: (Default: null) - add a prefix to namespace.
{
"plugins": [
[
"transform-omodule-namespace",
{ "namespacePrefix": "/om" }
]
]
}