From afe43038d080dd9c7930b216995b7d4a7156c24f Mon Sep 17 00:00:00 2001 From: Ming Ye Date: Tue, 31 Jan 2023 16:19:50 +0800 Subject: [PATCH] interop 'esModule' --- packages/react-dom/src/test-utils/FizzTestUtils.js | 2 +- scripts/rollup/build.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-dom/src/test-utils/FizzTestUtils.js b/packages/react-dom/src/test-utils/FizzTestUtils.js index 2eff98057d1ee..4033e066dab5c 100644 --- a/packages/react-dom/src/test-utils/FizzTestUtils.js +++ b/packages/react-dom/src/test-utils/FizzTestUtils.js @@ -38,7 +38,7 @@ async function getRollupResult(scriptSrc: string): Promise { output: { externalLiveBindings: false, freeze: false, - interop: 'auto', + interop: 'esModule', exports: 'auto', esModule: false, }, diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index 4e3584899d533..a02b9a3683ad3 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -186,7 +186,7 @@ function getRollupOutputOptions( format, globals, freeze: !isProduction, - interop: 'auto', + interop: 'esModule', exports: 'auto', name: globalName, sourcemap: false, @@ -600,7 +600,7 @@ async function createBundle(bundle, bundleType) { output: { externalLiveBindings: false, freeze: false, - interop: 'auto', + interop: 'esModule', exports: 'auto', esModule: false, },