Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/babel/website into sync-bc3…
Browse files Browse the repository at this point in the history
…99667
  • Loading branch information
docschina-bot committed Mar 22, 2024
2 parents ac88c79 + bc39966 commit df9c9fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/repl/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ export default function compile(code: string, config: CompileConfig): Return {
if (preset === "env") {
return ["env", presetEnvOptions];
}
if (preset === "typescript") {
if (
Babel.version &&
compareVersions(Babel.version, "8.0.0") < 0 &&
preset === "typescript"
) {
return [
"typescript",
{
Expand Down

0 comments on commit df9c9fd

Please sign in to comment.