From f51ad74b45684ab8a5f55a5471b873f5ce81b327 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 24 Mar 2023 23:56:58 +0000 Subject: [PATCH] Fix CommonJS imports after Rollup upgrade --- scripts/rollup/build.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index f7ce2760fb7bf..6e6384aba66f8 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -182,12 +182,16 @@ let getRollupInteropValue = id => { // Specifying `interop: 'default'` instead will have Rollup use the imported variable as-is, // without adding a `.default` to the reference. const modulesWithCommonJsExports = [ - 'JSResourceReferenceImpl', - 'error-stack-parser', 'art/core/transform', 'art/modes/current', 'art/modes/fast-noSideEffects', 'art/modes/svg', + 'JSResourceReferenceImpl', + 'error-stack-parser', + 'neo-async', + 'webpack/lib/dependencies/ModuleDependency', + 'webpack/lib/dependencies/NullDependency', + 'webpack/lib/Template', ]; if (modulesWithCommonJsExports.includes(id)) {