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: index.js
-32Lines changed: 0 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -1459,38 +1459,6 @@ class Encore {
1459
1459
runtimeConfig=null;
1460
1460
webpackConfig=null;
1461
1461
}
1462
-
1463
-
/**
1464
-
* @deprecated
1465
-
* @return {void}
1466
-
*/
1467
-
configureExtractTextPlugin(){
1468
-
thrownewError('The configureExtractTextPlugin() method was removed from Encore. The underlying plugin was removed from Webpack 4.');
1469
-
}
1470
-
1471
-
/**
1472
-
* @deprecated
1473
-
* @return {void}
1474
-
*/
1475
-
enableCoffeeScriptLoader(){
1476
-
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!');
1477
-
}
1478
-
1479
-
/**
1480
-
* @deprecated
1481
-
* @return {void}
1482
-
*/
1483
-
configureUglifyJsPlugin(){
1484
-
thrownewError('The configureUglifyJsPlugin() method was removed from Encore due to uglify-js dropping ES6+ support in its latest version. Please use configureTerserPlugin() instead.');
1485
-
}
1486
-
1487
-
/**
1488
-
* @deprecated
1489
-
* @return {void}
1490
-
*/
1491
-
configureLoaderOptionsPlugin(){
1492
-
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").`);
411
405
continue;
412
406
}
413
407
414
-
if(normalizedOptionKey==='includeNodeModules'){
408
+
if(optionKey==='includeNodeModules'){
415
409
if(Object.keys(options).includes('exclude')){
416
410
thrownewError('"includeNodeModules" and "exclude" options can\'t be used together when calling configureBabel().');
// causes a runtime.js to be emitted with the Webpack runtime
513
-
// this is important as a default because it causes different entry
514
-
// files to "share" modules, instead of each module getting their own
515
-
// fresh version of each module.
516
-
optimization.runtimeChunk='single';
517
-
break;
518
-
casefalse:
519
-
// add no runtimeChunk configuration
520
-
break;
521
-
casenull:
522
-
/*
523
-
* Not setting this option explicitly is deprecated.
524
-
*/
525
-
logger.deprecation('Either the Encore.enableSingleRuntimeChunk() or Encore.disableSingleRuntimeChunk() method should be called.');
526
-
if(this.webpackConfig.sharedCommonsEntryName){
527
-
logger.deprecation('Because you\'re using createSharedEntry(), the recommended setting is Encore.enableSingleRuntimeChunk().');
528
-
logger.deprecation('After calling Encore.enableSingleRuntimeChunk(), the "manifest.js" file will be called "runtime.js": your script tag will need to be updated.');
529
-
// output it, but keep the old filename
530
-
optimization.runtimeChunk={
531
-
name: 'manifest'
532
-
};
533
-
}else{
534
-
logger.deprecation('The recommended setting is Encore.enableSingleRuntimeChunk().');
535
-
logger.deprecation('After calling Encore.enableSingleRuntimeChunk(), a new "runtime.js" will be output and should be included on your page before any other script tags for Encore files.');
thrownewError('Either the Encore.enableSingleRuntimeChunk() or Encore.disableSingleRuntimeChunk() method should be called. The recommended setting is Encore.enableSingleRuntimeChunk().');
expect(JSON.stringify(logger.getMessages().deprecation)).to.contain('the recommended setting is Encore.enableSingleRuntimeChunk()');
970
+
expect(()=>configGenerator(config)).to.throw('Either the Encore.enableSingleRuntimeChunk() or Encore.disableSingleRuntimeChunk() method should be called');
0 commit comments