Restore @babel/register compat with @babel/core@7.5.x (#14136)
This commit is contained in:
parent
6870e7f10f
commit
db08d945d0
@ -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),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user