Skip to content

Commit 9a623e7

Browse files
fix: prepend entrypoints instead od append
this resolves an issue with module federation re webpack#2692
1 parent 4ab1f21 commit 9a623e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/addEntries.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ function addEntries(config, options, server) {
8484
// in this case, entry is a string or an array.
8585
// make sure that we do not add duplicates.
8686
/** @type {Entry} */
87-
const entriesClone = additionalEntries.slice(0);
88-
[].concat(originalEntry).forEach((newEntry) => {
87+
const entriesClone = [].concat(originalEntry);
88+
additionalEntries.forEach((newEntry) => {
8989
if (!entriesClone.includes(newEntry)) {
9090
entriesClone.push(newEntry);
9191
}

0 commit comments

Comments
 (0)