babel-plugin-transform-define
Advanced tools
Comparing version 2.1.3 to 2.1.4
# Changelog | ||
## 2.1.4 | ||
### Patch Changes | ||
- follow-up to last release, also prevent object properties from being replaced ([#88](https://github.com/FormidableLabs/babel-plugin-transform-define/pull/88)) | ||
## 2.1.3 | ||
@@ -4,0 +10,0 @@ |
@@ -100,4 +100,5 @@ "use strict"; | ||
|| isImportIdentifier(nodePath) | ||
// Do not transform Object keys unless they are computed like {[key]: value} | ||
// Do not transform Object keys / properties unless they are computed like {[key]: value} | ||
|| nodePath.key === "key" && nodePath.parent.computed === false | ||
|| nodePath.key === "property" && nodePath.parent.computed === false | ||
) { | ||
@@ -104,0 +105,0 @@ return; |
{ | ||
"name": "babel-plugin-transform-define", | ||
"description": "Babel plugin that replaces member expressions and typeof statements with strings", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Eric Baer <me@ericbaer.com> (https://github.com/baer)", |
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
13886
113