Compare commits

...

1 Commits

Author SHA1 Message Date
Dan Abramov f51ad74b45 Fix CommonJS imports after Rollup upgrade 2023-03-24 23:59:59 +00:00
1 changed files with 6 additions and 2 deletions

View File

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