babel-plugin-ember-modules-api-polyfill
Advanced tools
Comparing version 2.13.1 to 2.13.2
@@ -0,1 +1,10 @@ | ||
## v2.13.2 (2020-05-29) | ||
#### :bug: Bug Fix | ||
* [#110](https://github.com/ember-cli/babel-plugin-ember-modules-api-polyfill/pull/110) Avoid errors when replacing Ember modules imports that are used as both a type and a value ([@fivetanley](https://github.com/fivetanley)) | ||
#### Committers: 1 | ||
- Stanley Stuart ([@fivetanley](https://github.com/fivetanley)) | ||
## v2.13.1 (2020-05-29) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "babel-plugin-ember-modules-api-polyfill", | ||
"version": "2.13.1", | ||
"version": "2.13.2", | ||
"description": "Polyfill for Ember JS API.", | ||
@@ -35,2 +35,3 @@ "keywords": [ | ||
"@babel/core": "^7.10.1", | ||
"@babel/plugin-transform-typescript": "^7.10.1", | ||
"@babel/preset-env": "^7.10.1", | ||
@@ -37,0 +38,0 @@ "babel-core": "^6.25.0", |
@@ -19,2 +19,4 @@ 'use strict'; | ||
const isTypescriptNode = (node) => node.type.startsWith('TS'); | ||
const GLOBALS_MAP = new Map(); | ||
@@ -171,3 +173,5 @@ | ||
binding.referencePaths.forEach((referencePath) => { | ||
referencePath.replaceWith(getMemberExpressionFor(global)); | ||
if (!isTypescriptNode(referencePath.parentPath)) { | ||
referencePath.replaceWith(getMemberExpressionFor(global)); | ||
} | ||
}); | ||
@@ -174,0 +178,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25822
239
0
12