Skip to content

Commit fddd9e1

Browse files
committed
fix(index): do not reassign moduleId when one with the same name exists already
1 parent af1a745 commit fddd9e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class AureliaWebpackPlugin {
235235
}
236236
}
237237
}
238-
if (moduleId) {
238+
if (moduleId && !modules.find(m => m.id === moduleId)) {
239239
module.id = moduleId;
240240
}
241241
}

0 commit comments

Comments
 (0)