Skip to content

Commit

Permalink
fix: prepend entrypoints instead od append
Browse files Browse the repository at this point in the history
this resolves an issue with module federation

re webpack#2692
  • Loading branch information
ScriptedAlchemy committed Aug 9, 2020
1 parent 4ab1f21 commit 9a623e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/addEntries.js
Expand Up @@ -84,8 +84,8 @@ function addEntries(config, options, server) {
// in this case, entry is a string or an array.
// make sure that we do not add duplicates.
/** @type {Entry} */
const entriesClone = additionalEntries.slice(0);
[].concat(originalEntry).forEach((newEntry) => {
const entriesClone = [].concat(originalEntry);
additionalEntries.forEach((newEntry) => {
if (!entriesClone.includes(newEntry)) {
entriesClone.push(newEntry);
}
Expand Down

0 comments on commit 9a623e7

Please sign in to comment.