Skip to content

Commit

Permalink
Update .yarn/patches/@rollup__plugin-commonjs.patch
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Feb 21, 2021
1 parent 1d33e13 commit 0e918d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .yarn/patches/@rollup__plugin-commonjs.patch
Expand Up @@ -9,7 +9,7 @@ index 712f6a7d81b115d468a764b4139caa00d6cfc358..73fbf004217f3d44b6420d3082a0846b

function transformAndCheckExports(code, id) {
- if (isDynamicRequireModulesEnabled && this.getModuleInfo(id).isEntry) {
+ if (isDynamicRequireModulesEnabled && id.endsWith("/dynamic-require-entrypoint.cjs")) {
+ if (isDynamicRequireModulesEnabled && (this.getModuleInfo(id).isEntry || id.endsWith("/dynamic-require-entrypoint.cjs"))) {
code =
getDynamicPackagesEntryIntro(dynamicRequireModuleDirPaths, dynamicRequireModuleSet) + code;
}

0 comments on commit 0e918d0

Please sign in to comment.