You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Webpack Encore requires version ${chalk.green(packageConfig.version)} of ${chalk.green(packageConfig.name)}. Your version ${chalk.green(version)} is too new. The related feature *may* still work properly. If you have issues, try downgrading the library, or upgrading Encore.`
116
-
);
155
+
];
117
156
}else{
118
-
badVersionMessages.push(
157
+
return[
119
158
`Webpack Encore requires version ${chalk.green(packageConfig.version)} of ${chalk.green(packageConfig.name)}, but your version (${chalk.green(version)}) is too old. The related feature will probably *not* work correctly.`
120
-
);
159
+
];
121
160
}
122
-
}
161
+
};
123
162
124
-
returnbadVersionMessages;
163
+
returnprocessPackagesConfig(packagesConfig);
125
164
}
126
165
127
166
functionaddPackagesVersionConstraint(packages){
128
167
constpackageJsonData=require('../package.json');
168
+
constaddConstraint=(packageData)=>{
169
+
if(Array.isArray(packageData)){
170
+
returnpackageData.map(addConstraint);
171
+
}
129
172
130
-
returnpackages.map(packageData=>{
131
173
constnewData=Object.assign({},packageData);
132
174
133
175
if(packageData.enforce_version){
@@ -143,7 +185,10 @@ function addPackagesVersionConstraint(packages) {
0 commit comments