We did it! Another release! 🥇
To upgrade:
-
Update your
package.json
file: set the@symfony/webpack-encore
version to^0.26.0
. -
Run
yarn upgrade
!
Changes: v0.25.0..v0.26.0
-
[Behavior change] The Babel
useBuiltIns
option default value changed
fromentry
tofalse
, 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 thesass
orstyle
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 thesass
attribute 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
integrity
key to be added toentrypoints.json
with integrity values
that can be included in thescript
orlink
tag for that asset - #522
thanks to @Lyrkan. -
Allow some parts of
configureBabel()
to be used, even if there is
an external.babelrc
configuration file - #544 thanks to @Lyrkan.