Skip to content

Commit

Permalink
Restore @babel/register compat with @babel/core@7.5.x (#14136)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Jan 11, 2022
1 parent 6870e7f commit db08d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-register/src/worker/transform.js
Expand Up @@ -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),
Expand Down

0 comments on commit db08d94

Please sign in to comment.