@import-meta-env/babel
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -161,8 +161,10 @@ "use strict"; | ||
var _a, _b, _c; | ||
if (!t.isMemberExpression(path.parentPath.node)) | ||
return; | ||
if (!t.isIdentifier(path.parentPath.node.property)) | ||
return; | ||
if (path.parentPath.node.property.name !== "env") | ||
return; | ||
const shouldInlineEnv = ((_a = state.opts) == null ? void 0 : _a.shouldInlineEnv) ?? process.env.NODE_ENV !== "production"; | ||
if (shouldInlineEnv) { | ||
if (!t.isMemberExpression(path.parentPath.node)) | ||
return; | ||
if (!t.isIdentifier(path.parentPath.node.property)) | ||
return; | ||
if (env === void 0) { | ||
@@ -169,0 +171,0 @@ let envFilePath2 = ((_b = state.opts) == null ? void 0 : _b.env) || envFilePath; |
{ | ||
"name": "@import-meta-env/babel", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Load environment variables into import.meta.env object", | ||
@@ -44,4 +44,7 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "7.19.3" | ||
"@babel/core": "7.19.6", | ||
"@types/babel-plugin-tester": "^9.0.5", | ||
"@types/babel__core": "^7.1.19", | ||
"babel-plugin-tester": "^10.1.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
10798
186
4