Skip to content

Commit

Permalink
fix: prepend entrypoints instead of 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 10, 2020
1 parent 4ab1f21 commit 95fe365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/addEntries.js
Original file line number Diff line number Diff line change
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 95fe365

Please sign in to comment.