ember-cli-babel
Advanced tools
Comparing version 7.20.3 to 7.20.4
@@ -0,1 +1,13 @@ | ||
## v7.20.4 (2020-05-30) | ||
#### :bug: Bug Fix | ||
* [#345](https://github.com/babel/ember-cli-babel/pull/345) Prevent `regeneratorRuntime is not defined` errors by defensively copying `targets` (preventing `@babel/helper-compilation-targets` from mutating `targets`) ([@fivetanley](https://github.com/fivetanley)) | ||
#### :house: Internal | ||
* [#339](https://github.com/babel/ember-cli-babel/pull/339) Migrate to GitHub Actions CI ([@rwjblue](https://github.com/rwjblue)) | ||
#### Committers: 2 | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
- Stanley Stuart ([@fivetanley](https://github.com/fivetanley)) | ||
## v7.20.3 (2020-05-29) | ||
@@ -2,0 +14,0 @@ |
@@ -545,3 +545,10 @@ 'use strict'; | ||
if (typeof targets === 'object' && targets !== null) { | ||
return parser(targets); | ||
// babel version 7.10.0 introduced a change that mutates the input: | ||
// https://github.com/babel/babel/pull/11500 | ||
// copy the object to guard against it, otherwise subsequent calls to | ||
// _getTargets() will only have a mutated copy and lose all config from `config/targets.js` | ||
// in the host application. | ||
// PR to fix this upstream in babel: https://github.com/babel/babel/pull/11648 | ||
const copy = clone(targets); | ||
return parser(copy); | ||
} else { | ||
@@ -548,0 +555,0 @@ return targets; |
{ | ||
"name": "ember-cli-babel", | ||
"version": "7.20.3", | ||
"version": "7.20.4", | ||
"description": "Ember CLI addon for Babel", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
82742
613