npm @symfony/webpack-encore 4.7.0

latest releases: 5.0.1, 5.0.0
2 months ago

Hey packagers, it's been a while!

After several months of inactivity, Webpack Encore is back with a few new features: many loaders upgrades, Node.js 22 support, and Vue3+JSX.

Features

Enabling JSX support for Vue 3 is done with the Encore.enableVueLoader():

Encore.enableVueLoader(() => {}, { 
    useJsx: true,
    version: 3,
});

If you don't have a custom Babel configuration, then you're all set!
But if you do, you may need to adjust it
to add @vue/babel-plugin-jsx plugin to your Babel configuration:

// babel.config.js
module.exports = {
    plugins: [
        '@vue/babel-plugin-jsx'
    ]
};

Deprecations

Internal

  • #1275 Update some dev-dependencies to fix vulnerability issues (@Kocal)

  • #1259 Update yarn used for test_apps to latest version (@karpilin)

  • #1297 Upgrade GitHub Actions in CI (@Kocal)

  • #1304 Replace fast-levenshtein by fastest-levenshtein (@Kocal)

  • #1303 Replace pkg-up by an inlined solution (@Kocal)

Upgrading

Run:

npm install "@symfony/webpack-encore@^4.7.0" --save-dev

or:

yarn upgrade "@symfony/webpack-encore@^4.7.0"

Changes: v4.6.1..v4.7.0

Happy Packing!

Don't miss a new webpack-encore release

NewReleases is sending notifications on new releases.