mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2026-01-03 19:44:52 +01:00
composer and npm
This commit is contained in:
9
conf/site/node_modules/webpack-dev-server/lib/utils/addEntries.js
generated
vendored
9
conf/site/node_modules/webpack-dev-server/lib/utils/addEntries.js
generated
vendored
@@ -68,7 +68,14 @@ function addEntries(config, options, server) {
|
||||
|
||||
Object.keys(originalEntry).forEach((key) => {
|
||||
// entry[key] should be a string here
|
||||
clone[key] = prependEntry(originalEntry[key], additionalEntries);
|
||||
const entryDescription = originalEntry[key];
|
||||
if (typeof entryDescription === 'object' && entryDescription.import) {
|
||||
clone[key] = Object.assign({}, entryDescription, {
|
||||
import: prependEntry(entryDescription.import, additionalEntries),
|
||||
});
|
||||
} else {
|
||||
clone[key] = prependEntry(entryDescription, additionalEntries);
|
||||
}
|
||||
});
|
||||
|
||||
return clone;
|
||||
|
||||
Reference in New Issue
Block a user