Skip to content

Commit

Permalink
fix(global-scope): prevent duplicate global scope module throw, just …
Browse files Browse the repository at this point in the history
…log error (#151)
  • Loading branch information
AliMD authored Oct 11, 2024
2 parents e0b3b4a + e67ffec commit e65ce14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/global-scope/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ if (globalScope.__shared_scope_defined__ !== undefined) {
newVersion: __package_version__
},
}));
throw new Error('global_scope_module_duplicated');
// throw new Error('global_scope_module_duplicated');
}
globalScope.__shared_scope_defined__ = __package_version__;

0 comments on commit e65ce14

Please sign in to comment.