Skip to content

Commit

Permalink
Workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 22, 2023
1 parent 612e3e4 commit fbfbfed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/babel-helper-transform-fixture-test-runner/src/index.ts
Expand Up @@ -457,6 +457,16 @@ function normalizeOutput(
if (normalizePresetEnvDebug) {
result = result.replace(/(\s+)proposal-/gm, "$1transform-");
}

// For some reasons, in older Node.js versions some symlinks are not properly
// resolved. The behavior is still ok, but we need to unify the output with
// newer Node.js versions.
if (parseInt(process.versions.node, 10) <= 8) {
result = result.replace(
/<CWD>\/node_modules\/@babel\/runtime-corejs3/g,
"<CWD>/packages/babel-runtime-corejs3",
);
}
}

return result;
Expand Down

0 comments on commit fbfbfed

Please sign in to comment.