react-app-rewire-multiple-entry
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -28,4 +28,5 @@ "use strict"; | ||
})[0]; | ||
defaultEntryHTMLPlugin.options.chunks = [defaultEntryName]; | ||
var necessaryEntry = config.entry.filter(function (file) { | ||
defaultEntryHTMLPlugin.options.chunks = [defaultEntryName]; // If there is only one entry file then it should not be necessary for the rest of the entries | ||
var necessaryEntry = config.entry.length === 1 ? [] : config.entry.filter(function (file) { | ||
return !appIndexes.includes(file); | ||
@@ -32,0 +33,0 @@ }); |
{ | ||
"name": "react-app-rewire-multiple-entry", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Multiple Entry Support for Create-React-App", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,3 +21,4 @@ import path from 'path'; | ||
defaultEntryHTMLPlugin.options.chunks = [defaultEntryName]; | ||
const necessaryEntry = config.entry.filter(function(file:string) { | ||
// If there is only one entry file then it should not be necessary for the rest of the entries | ||
const necessaryEntry = config.entry.length === 1 ? [] : config.entry.filter(function(file:string) { | ||
return !appIndexes.includes(file); | ||
@@ -24,0 +25,0 @@ }); |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22292
401
0