0.1.1 • Published 10 years ago

babel-plugin-transform-global-defs v0.1.1

Weekly downloads
112
License
MIT
Repository
github
Last release
10 years ago

babel-plugin-transform-global-defs

Transform Global definitions that are available at build time

Install

npm install babel-plugin-transform-global-defs

Options

{
  "global_defs": {
    "process.env": {
      "NODE_ENV": "production"
    }
  }
}

In

if (process.env.NODE_ENV !== 'production') {
  DEBUG = true;
}

Out

if ('production' !== 'production') {
  DEBUG = true;
}