Point to CJS files in @babel/compat-data's exports (#13000)
This commit is contained in:
parent
0988c471e9
commit
759f8ecdce
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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");
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user