Skip to content

omodule/babel-plugin-transform-omodule-namespace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babel-plugin-transform-omodule-namespace

Build Status npm
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" }
        ]
    ]
}

About

⚙️ babel plugin to transform omodule namespace constants

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published