We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d233c commit 42cecc0Copy full SHA for 42cecc0
packages/runtime/src/module/index.ts
@@ -137,7 +137,11 @@ class Module {
137
id: string,
138
) {
139
function defineModuleId(res: any, id: string) {
140
- if (res && typeof res === 'object') {
+ if (
141
+ res &&
142
+ typeof res === 'object' &&
143
+ !Object.getOwnPropertyDescriptor(res, Symbol.for('mf_module_id'))
144
+ ) {
145
Object.defineProperty(res, Symbol.for('mf_module_id'), {
146
value: id,
147
enumerable: false,
0 commit comments