Skip to content

Commit

Permalink
Suppress data/core-js-compat importing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 21, 2022
1 parent 6b3ae16 commit 3e9f7fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-preset-env/src/normalize-options.ts
@@ -1,5 +1,8 @@
import semver, { type SemVer } from "semver";
import corejs2Polyfills from "@babel/compat-data/corejs2-built-ins";
// @ts-ignore Fixme: TS can not infer types from ../data/core-js-compat.js
// but we can't import core-js-compat/data.json because JSON imports does
// not work on Node 14
import corejs3Polyfills from "../data/core-js-compat";
import { plugins as pluginsList } from "./plugins-compat-data";
import moduleTransformations from "./module-transformations";
Expand Down

0 comments on commit 3e9f7fa

Please sign in to comment.