Upgrade notice for breaking changes
The main encore configuration moved from root page to layout settings. We provide an runonce, which should cover the most cases for moving the configuration, but you should check the configuration. Also no entries are transferred, this must be done manually (since the entries in the page root still exist, everthing should also work if no entries transferred).
The are changes to increasing encore version to 0.22 and use symfony encore bundle.
OLD
// webpack.config.js
Encore
// ...
.createSharedEntry('vendor', [
'jquery',
'bootstrap'
])
NEW
Require entries in your project js instead.
// contao-project-bundle.js
require('jquery');
require('bootstrap');
Babel version was increased to 7
OLD:
// webpack.config.js
Encore
// ...
.addEntry('babel-polyfill', [
'babel-polyfill'
])
NEW:
// webpack.config.js
Encore
// ...
.addEntry('babel-polyfill', [
'@babel/polyfill'
])
If you want your dependencies to be just included one (instead of added to every file require them), add:
// webpack.config.js
Encore
// ...
.splitEntryChunks()
.enableSingleRuntimeChunk()