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.');
1644
-
}
1645
-
1646
-
/**
1647
-
* @deprecated
1648
-
* @return {void}
1649
-
*/
1650
-
enableCoffeeScriptLoader(){
1651
-
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!');
1652
-
}
1653
-
1654
-
/**
1655
-
* @deprecated
1656
-
* @return {void}
1657
-
*/
1658
-
configureUglifyJsPlugin(){
1659
-
thrownewError('The configureUglifyJsPlugin() method was removed from Encore due to uglify-js dropping ES6+ support in its latest version. Please use configureTerserPlugin() instead.');
1660
-
}
1661
-
1662
-
/**
1663
-
* @deprecated
1664
-
* @return {void}
1665
-
*/
1666
-
configureLoaderOptionsPlugin(){
1667
-
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 (e.g. a ".babelrc" or "babel.config.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 (e.g. a ".babelrc" or "babelrc.config.js" file or "babel" key in "package.json").`);
425
419
continue;
426
420
}
427
421
428
-
if(normalizedOptionKey==='includeNodeModules'){
422
+
if(optionKey==='includeNodeModules'){
429
423
if(Object.keys(options).includes('exclude')){
430
424
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.');
535
-
536
-
if(this.shouldSplitEntryChunks){
537
-
thrownewError('Using splitEntryChunks() and createSharedEntry() together is not supported. Use one of these strategies only to optimize your build.');
538
-
}
539
-
540
-
// don't allow to call this twice
541
-
if(this.sharedCommonsEntryName){
542
-
thrownewError('createSharedEntry() cannot be called multiple times: you can only create *one* shared entry.');
543
-
}
544
-
545
-
if(Array.isArray(file)){
546
-
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.');
547
-
}
548
-
549
-
this.sharedCommonsEntryName=name;
550
-
this.sharedCommonsEntryFile=file;
551
-
552
-
this.addEntry(name,file);
553
-
}
554
-
555
536
addCacheGroup(name,options){
556
537
if(typeofname!=='string'){
557
538
thrownewError('Argument 1 to addCacheGroup() must be a string.');
0 commit comments