babel-plugin-transform-node-env-inline
Advanced tools
Comparing version 0.4.0-alpha.6546ad11 to 0.4.0-alpha.caaefb4c
@@ -5,3 +5,2 @@ "use strict"; | ||
var t = _ref.types; | ||
return { | ||
@@ -16,2 +15,3 @@ name: "transform-node-env-inline", | ||
var evaluated = path.parentPath.evaluate(); | ||
if (evaluated.confident) { | ||
@@ -23,4 +23,5 @@ path.parentPath.replaceWith(t.valueToNode(evaluated.value)); | ||
} | ||
} | ||
}; | ||
}; |
{ | ||
"name": "babel-plugin-transform-node-env-inline", | ||
"version": "0.4.0-alpha.6546ad11", | ||
"version": "0.4.0-alpha.caaefb4c", | ||
"description": "Inline the `NODE_ENV` environment variable and evaluate it if possible", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -53,5 +53,5 @@ # babel-plugin-transform-node-env-inline | ||
```javascript | ||
require("babel-core").transform("code", { | ||
require("@babel/core").transform("code", { | ||
plugins: ["transform-node-env-inline"] | ||
}); | ||
``` |
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
1938