babel-plugin-transform-node-env-inline
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -9,3 +9,3 @@ "use strict"; | ||
visitor: { | ||
MemberExpression: function MemberExpression(path) { | ||
MemberExpression(path) { | ||
if (path.matchesPattern("process.env.NODE_ENV")) { | ||
@@ -12,0 +12,0 @@ path.replaceWith(t.valueToNode(process.env.NODE_ENV)); |
{ | ||
"name": "babel-plugin-transform-node-env-inline", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Inline the `NODE_ENV` environment variable and evaluate it if possible", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/babel/babili#readme", |
@@ -18,3 +18,3 @@ # babel-plugin-transform-node-env-inline | ||
```sh | ||
$ NODE_ENV=development babel in.js --plugins transform-node-env-inline | ||
NODE_ENV=development babel in.js --plugins transform-node-env-inline | ||
``` | ||
@@ -30,3 +30,3 @@ | ||
```sh | ||
$ npm install babel-plugin-transform-node-env-inline | ||
npm install babel-plugin-transform-node-env-inline | ||
``` | ||
@@ -49,3 +49,3 @@ | ||
```sh | ||
$ babel --plugins transform-node-env-inline script.js | ||
babel --plugins transform-node-env-inline script.js | ||
``` | ||
@@ -52,0 +52,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2001