babel-plugin-transform-omodule-namespace
v0.5.0
Published
[![Build Status](https://travis-ci.org/omodule/babel-plugin-transform-omodule-namespace.svg?branch=master)](https://travis-ci.org/omodule/babel-plugin-transform-omodule-namespace) [![npm](https://img.shields.io/npm/v/babel-plugin-transform-omodule-namespa
Downloads
4
Readme
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-dev
Configuration
.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" }
]
]
}