babel-plugin-transform-node-env-inline
Advanced tools
Comparing version 0.3.0-alpha.cf9a0da2 to 0.3.0-alpha.d9c99d3f
"use strict"; | ||
module.exports = function (_ref) { | ||
var t = _ref.types; | ||
module.exports = function ({ types: t }) { | ||
return { | ||
@@ -14,3 +12,3 @@ name: "transform-node-env-inline", | ||
if (path.parentPath.isBinaryExpression()) { | ||
var evaluated = path.parentPath.evaluate(); | ||
const evaluated = path.parentPath.evaluate(); | ||
if (evaluated.confident) { | ||
@@ -17,0 +15,0 @@ path.parentPath.replaceWith(t.valueToNode(evaluated.value)); |
{ | ||
"name": "babel-plugin-transform-node-env-inline", | ||
"version": "0.3.0-alpha.cf9a0da2", | ||
"version": "0.3.0-alpha.d9c99d3f", | ||
"description": "Inline the `NODE_ENV` environment variable and evaluate it if possible", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1923
18