babel-plugin-transform-global-defs
Transform global definitions that are available at build time
Last updated 10 years ago by boopathi .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install babel-plugin-transform-global-defs 
SYNC missed versions from official npm registry.

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;
}

Current Tags

  • 0.1.1                                ...           latest (10 years ago)

2 Versions

  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |