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
thrownewError('The configureExtractTextPlugin() method was removed from Encore. The underlying plugin was removed from Webpack 4.');
1572
-
}
1573
-
1574
-
/**
1575
-
* @deprecated
1576
-
* @return {void}
1577
-
*/
1578
-
enableCoffeeScriptLoader(){
1579
-
thrownewError('The enableCoffeeScriptLoader() method and CoffeeScript support was removed from Encore due to support problems with Webpack 4. If you are interested in this feature, please submit a pull request!');
1580
-
}
1581
-
1582
-
/**
1583
-
* @deprecated
1584
-
* @return {void}
1585
-
*/
1586
-
configureUglifyJsPlugin(){
1587
-
thrownewError('The configureUglifyJsPlugin() method was removed from Encore due to uglify-js dropping ES6+ support in its latest version. Please use configureTerserPlugin() instead.');
1588
-
}
1589
-
1590
-
/**
1591
-
* @deprecated
1592
-
* @return {void}
1593
-
*/
1594
-
configureLoaderOptionsPlugin(){
1595
-
thrownewError('The configureLoaderOptionsPlugin() method was removed from Encore. The underlying plugin should not be needed anymore unless you are using outdated loaders. If that\'s the case you can still add it using addPlugin().');
logger.warning(`The "${normalizedOptionKey}" option of configureBabel() will not be used because your app already provides an external Babel configuration (a ".babelrc" file, ".babelrc.js" file or "babel" key in "package.json").`);
logger.warning(`The "${optionKey}" option of configureBabel() will not be used because your app already provides an external Babel configuration (a ".babelrc" file, ".babelrc.js" file or "babel" key in "package.json").`);
415
409
continue;
416
410
}
417
411
418
-
if(normalizedOptionKey==='includeNodeModules'){
412
+
if(optionKey==='includeNodeModules'){
419
413
if(Object.keys(options).includes('exclude')){
420
414
thrownewError('"includeNodeModules" and "exclude" options can\'t be used together when calling configureBabel().');
logger.deprecation('Encore.createSharedEntry() is deprecated and will be removed in a future version, please use Encore.splitEntryChunks() or Encore.addCacheGroup() instead.');
517
-
518
-
if(this.shouldSplitEntryChunks){
519
-
thrownewError('Using splitEntryChunks() and createSharedEntry() together is not supported. Use one of these strategies only to optimize your build.');
520
-
}
521
-
522
-
// don't allow to call this twice
523
-
if(this.sharedCommonsEntryName){
524
-
thrownewError('createSharedEntry() cannot be called multiple times: you can only create *one* shared entry.');
525
-
}
526
-
527
-
if(Array.isArray(file)){
528
-
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.');
529
-
}
530
-
531
-
this.sharedCommonsEntryName=name;
532
-
this.sharedCommonsEntryFile=file;
533
-
534
-
this.addEntry(name,file);
535
-
}
536
-
537
518
addCacheGroup(name,options){
538
519
if(typeofname!=='string'){
539
520
thrownewError('Argument 1 to addCacheGroup() must be a string.');
0 commit comments