v0.26.0 useBuiltIns Behavior change, style resolving & integrity support
We did it! Another release! 🥇
To upgrade:
-
Update your
package.jsonfile: set the@symfony/webpack-encoreversion to^0.26.0. -
Run
yarn upgrade!
Changes: v0.25.0..v0.26.0
-
[Behavior change] The Babel
useBuiltInsoption default value changed
fromentrytofalse, which means that polyfills may no longer be
provided in the same way. This is due to a change in Babel and core-js.
To get the same functionality back, runyarn add core-js --dev, then use:Encore.configureBabel(() => {}, { useBuiltIns: 'entry', // or try "usage" corejs: 3 })
-
Added the ability to "resolve" CSS and Sass files without specifying
the file extension and by taking advantage of thesassorstyle
attribute in an npm package. For example, you can now import the main
Bootstrap SASS file from within a SASS file by saying@import ~bootstrap.
This will use thesassattribute from the bootstrappackage.json
file to find which file to load. #474 thanks to @deAtog. -
Added a new
Encore.enableIntegrityHashes(), which will cause a new
integritykey to be added toentrypoints.jsonwith integrity values
that can be included in thescriptorlinktag for that asset - #522
thanks to @Lyrkan. -
Allow some parts of
configureBabel()to be used, even if there is
an external.babelrcconfiguration file - #544 thanks to @Lyrkan.