Skip to content

Commit

Permalink
chore: 🎨 add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly committed Dec 12, 2024
1 parent 900723c commit d18147a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/runtime/src/Plugin/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ export default class Plugin {
assert(!!plugin.apply, `register failed, plugin.apply must supplied`);
assert(!!plugin.path, `register failed, plugin.path must supplied`);
Object.keys(plugin.apply).forEach((key) => {
// workaround for https://github.com/umijs/mako/issues/1657
// root cause: mako bundler will add a default export to an empty module
if (key === 'default') {
return;
}
Expand Down

0 comments on commit d18147a

Please sign in to comment.