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
Copy file name to clipboardExpand all lines: lib/WebpackConfig.js
+2-2
Original file line number
Diff line number
Diff line change
@@ -526,8 +526,6 @@ class WebpackConfig {
526
526
}
527
527
528
528
createSharedEntry(name,file){
529
-
logger.deprecation('Encore.createSharedEntry() is deprecated and will be removed in a future version, please use Encore.splitEntryChunks() or Encore.addCacheGroup() instead.');
530
-
531
529
if(this.shouldSplitEntryChunks){
532
530
thrownewError('Using splitEntryChunks() and createSharedEntry() together is not supported. Use one of these strategies only to optimize your build.');
533
531
}
@@ -537,6 +535,8 @@ class WebpackConfig {
537
535
thrownewError('createSharedEntry() cannot be called multiple times: you can only create *one* shared entry.');
538
536
}
539
537
538
+
logger.deprecation('Encore.createSharedEntry() is deprecated and will be removed in a future version, please use Encore.splitEntryChunks() or Encore.addCacheGroup() instead.');
539
+
540
540
if(Array.isArray(file)){
541
541
thrownewError('Argument 2 to createSharedEntry() must be a single string file: not an array of files. Try creating one file that requires/imports all the modules that should be included.');
loggerAssert.assertWarning('The value passed to setManifestKeyPrefix "/foo/" starts with "/". This is allowed, but since the key prefix does not normally start with a "/"');
}).to.throw('Loader "reason" is not configurable. Valid loaders are "javascript", "css", "images", "fonts", "sass", "less", "stylus", "vue", "eslint", "typescript", "handlebars" and the aliases "js", "ts", "scss".');
1334
+
loggerAssert.assertWarning('Be careful when using Encore.configureLoaderRule');
0 commit comments