update babel and rollup paths to use Debian packages files

Forwarded: not-needed
Last-Update: 2021-01-05

Gbp-Pq: Name update-rollup-and-babel-paths.patch
This commit is contained in:
Xavier Guimard 2022-05-19 14:59:04 +08:00 committed by openKylinBot
parent c3aec8a6bd
commit 74777bb357
2 changed files with 10 additions and 0 deletions

View File

@ -240,6 +240,7 @@ function buildRollup(packages, targetBrowsers) {
input, input,
external, external,
onwarn(warning, warn) { onwarn(warning, warn) {
if (warning.code === 'THIS_IS_UNDEFINED') return;
if (warning.code !== "CIRCULAR_DEPENDENCY") { if (warning.code !== "CIRCULAR_DEPENDENCY") {
warn(warning); warn(warning);
// https://github.com/babel/babel/pull/12011#discussion_r540434534 // https://github.com/babel/babel/pull/12011#discussion_r540434534
@ -272,6 +273,11 @@ function buildRollup(packages, targetBrowsers) {
"packages/babel-preset-env/data/*.js", "packages/babel-preset-env/data/*.js",
// Rollup doesn't read export maps, so it loads the cjs fallback // Rollup doesn't read export maps, so it loads the cjs fallback
"packages/babel-compat-data/*.js", "packages/babel-compat-data/*.js",
/nodejs/,
"../**/nodejs/**",
"/usr/share/**",
"/usr/lib/**",
"debian/**",
], ],
}), }),
rollupJson(), rollupJson(),

View File

@ -36,6 +36,10 @@ module.exports = function (api) {
"codemods/*/test", "codemods/*/test",
"eslint/*/src", "eslint/*/src",
"eslint/*/test", "eslint/*/test",
"../**/nodejs/*/",
"/usr/share/nodejs/*/",
"/usr/lib/nodejs/*/",
"/usr/share/javascript/*/",
]; ];
switch (env) { switch (env) {