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.');
1608
-
}
1609
-
1610
-
/**
1611
-
* @deprecated
1612
-
* @return {void}
1613
-
*/
1614
-
enableCoffeeScriptLoader(){
1615
-
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!');
1616
-
}
1617
-
1618
-
/**
1619
-
* @deprecated
1620
-
* @return {void}
1621
-
*/
1622
-
configureUglifyJsPlugin(){
1623
-
thrownewError('The configureUglifyJsPlugin() method was removed from Encore due to uglify-js dropping ES6+ support in its latest version. Please use configureTerserPlugin() instead.');
1624
-
}
1625
-
1626
-
/**
1627
-
* @deprecated
1628
-
* @return {void}
1629
-
*/
1630
-
configureLoaderOptionsPlugin(){
1631
-
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").`);
419
413
continue;
420
414
}
421
415
422
-
if(normalizedOptionKey==='includeNodeModules'){
416
+
if(optionKey==='includeNodeModules'){
423
417
if(Object.keys(options).includes('exclude')){
424
418
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.');
529
-
530
-
if(this.shouldSplitEntryChunks){
531
-
thrownewError('Using splitEntryChunks() and createSharedEntry() together is not supported. Use one of these strategies only to optimize your build.');
532
-
}
533
-
534
-
// don't allow to call this twice
535
-
if(this.sharedCommonsEntryName){
536
-
thrownewError('createSharedEntry() cannot be called multiple times: you can only create *one* shared entry.');
537
-
}
538
-
539
-
if(Array.isArray(file)){
540
-
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.');
541
-
}
542
-
543
-
this.sharedCommonsEntryName=name;
544
-
this.sharedCommonsEntryFile=file;
545
-
546
-
this.addEntry(name,file);
547
-
}
548
-
549
530
addCacheGroup(name,options){
550
531
if(typeofname!=='string'){
551
532
thrownewError('Argument 1 to addCacheGroup() must be a string.');
0 commit comments