Skip to content

Commit

Permalink
Fix CommonJS imports after Rollup upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 24, 2023
1 parent 909c6da commit bafb8e6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/rollup/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit bafb8e6

Please sign in to comment.