babel-plugin-transform-replace-expressions
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -11,3 +11,3 @@ const { parseExpression } = require("@babel/parser"); | ||
function sanitizedNode(node) { | ||
const { comments, loc, start, end, ...rest } = node; | ||
const { comments, loc, start, end, extra, ...rest } = node; | ||
return rest; | ||
@@ -58,3 +58,3 @@ } | ||
visitor: { | ||
Expression(path, state) { | ||
Expression(path) { | ||
if (replacementNodes.has(path.node)) { | ||
@@ -61,0 +61,0 @@ path.skip(); |
{ | ||
"name": "babel-plugin-transform-replace-expressions", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -30,3 +30,3 @@ # babel-plugin-transform-replace-expressions | ||
"process.env.NODE_ENV": "\"production\"", | ||
"typeof Hello": "42", | ||
"typeof Hello": "42" | ||
} | ||
@@ -33,0 +33,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
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
3792