From 74777bb35775f3c87aa44df8e2279bea91aeb406 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Thu, 19 May 2022 14:59:04 +0800 Subject: [PATCH] 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 --- Gulpfile.js | 6 ++++++ babel.config.js | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/Gulpfile.js b/Gulpfile.js index 25c74e28..f1d9196a 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -240,6 +240,7 @@ function buildRollup(packages, targetBrowsers) { input, external, onwarn(warning, warn) { + if (warning.code === 'THIS_IS_UNDEFINED') return; if (warning.code !== "CIRCULAR_DEPENDENCY") { warn(warning); // https://github.com/babel/babel/pull/12011#discussion_r540434534 @@ -272,6 +273,11 @@ function buildRollup(packages, targetBrowsers) { "packages/babel-preset-env/data/*.js", // Rollup doesn't read export maps, so it loads the cjs fallback "packages/babel-compat-data/*.js", + /nodejs/, + "../**/nodejs/**", + "/usr/share/**", + "/usr/lib/**", + "debian/**", ], }), rollupJson(), diff --git a/babel.config.js b/babel.config.js index 4e27b68d..bfda3805 100644 --- a/babel.config.js +++ b/babel.config.js @@ -36,6 +36,10 @@ module.exports = function (api) { "codemods/*/test", "eslint/*/src", "eslint/*/test", + "../**/nodejs/*/", + "/usr/share/nodejs/*/", + "/usr/lib/nodejs/*/", + "/usr/share/javascript/*/", ]; switch (env) {