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) {