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