Skip to content

Commit

Permalink
Point to CJS files in @babel/compat-data's exports (#13000)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 15, 2021
1 parent 0988c47 commit 759f8ec
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 24 deletions.
3 changes: 0 additions & 3 deletions packages/babel-compat-data/corejs2-built-ins.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/corejs2-built-ins.json");
3 changes: 0 additions & 3 deletions packages/babel-compat-data/corejs3-shipped-proposals.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/corejs3-shipped-proposals.json");
3 changes: 0 additions & 3 deletions packages/babel-compat-data/native-modules.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/native-modules.json");
3 changes: 0 additions & 3 deletions packages/babel-compat-data/overlapping-plugins.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/overlapping-plugins.json");
12 changes: 6 additions & 6 deletions packages/babel-compat-data/package.json
Expand Up @@ -13,12 +13,12 @@
"access": "public"
},
"exports": {
"./plugins": "./data/plugins.json",
"./native-modules": "./data/native-modules.json",
"./corejs2-built-ins": "./data/corejs2-built-ins.json",
"./corejs3-shipped-proposals": "./data/corejs3-shipped-proposals.json",
"./overlapping-plugins": "./data/overlapping-plugins.json",
"./plugin-bugfixes": "./data/plugin-bugfixes.json"
"./plugins": "./plugins.js",
"./native-modules": "./native-modules.js",
"./corejs2-built-ins": "./corejs2-built-ins.js",
"./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
"./overlapping-plugins": "./overlapping-plugins.js",
"./plugin-bugfixes": "./plugin-bugfixes.js"
},
"scripts": {
"build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.js && node ./scripts/build-modules-support.js && node ./scripts/build-bugfixes-targets.js"
Expand Down
3 changes: 0 additions & 3 deletions packages/babel-compat-data/plugin-bugfixes.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/plugin-bugfixes.json");
3 changes: 0 additions & 3 deletions packages/babel-compat-data/plugins.js
@@ -1,4 +1 @@
// Node < 13.3 doesn't support export maps in package.json.
// Use this proxy file as a fallback.

module.exports = require("./data/plugins.json");

0 comments on commit 759f8ec

Please sign in to comment.