Restore @babel/register compat with @babel/core@7.5.x (#14136)

This commit is contained in:
Nicolò Ribaudo 2022-01-11 23:26:07 +01:00 committed by GitHub
parent 6870e7f10f
commit db08d945d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ exports.transform = async function (input, filename) {
if (!process.env.BABEL_8_BREAKING) {
exports.transformSync = function (input, filename) {
const opts = babel.loadOptionsSync({
const opts = babel.loadOptions({
// sourceRoot can be overwritten
sourceRoot: path.dirname(filename) + path.sep,
...cloneDeep(transformOpts),