parent
ee68d6d1b0
commit
7dc5fdb390
@ -455,6 +455,11 @@ export default declare((api, opts) => {
|
|||||||
try {
|
try {
|
||||||
helper = file.addHelper("objectSpread2");
|
helper = file.addHelper("objectSpread2");
|
||||||
} catch {
|
} catch {
|
||||||
|
// TODO: This is needed to workaround https://github.com/babel/babel/issues/10187
|
||||||
|
// and https://github.com/babel/babel/issues/10179 for older @babel/core versions
|
||||||
|
// where #10187 isn't fixed.
|
||||||
|
this.file.declarations["objectSpread2"] = null;
|
||||||
|
|
||||||
// objectSpread2 has been introduced in v7.5.0
|
// objectSpread2 has been introduced in v7.5.0
|
||||||
// We have to maintain backward compatibility.
|
// We have to maintain backward compatibility.
|
||||||
helper = file.addHelper("objectSpread");
|
helper = file.addHelper("objectSpread");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user