Manually inline the createSuper helper on older Babel versions (#11298)

* Manually inline the createSuper helper on older Babel versions

* Forgot to commit this

* Add comments [skip ci]
This commit is contained in:
Nicolò Ribaudo
2020-03-21 14:39:14 +01:00
committed by GitHub
parent 3d8f48cb16
commit 429dd2ce8a
3 changed files with 76 additions and 1 deletions

View File

@@ -735,6 +735,7 @@ helpers.possibleConstructorReturn = helper("7.0.0-beta.0")`
}
`;
// This is duplicated to packages/babel-plugin-transform-classes/src/inline-createSuper-helpers.js
helpers.createSuper = helper("7.9.0")`
import getPrototypeOf from "getPrototypeOf";
import isNativeReflectConstruct from "isNativeReflectConstruct";