npm @symfony/webpack-encore 0.30.0
Major dependency upgrades, Vue runtime only, Vue3 support

latest releases: 4.6.1, 4.6.0, 4.5.0...
4 years ago

Hi friends!

This is a big release that contains major upgrades to packages that Encore (and your app) depends on. Some of these upgrades may affect your app. Please check out the details below to learn more.

Changes: v0.29.1...v0.30.0

Highlights

  • [BC BREAK] The Vue "build" was changed from vue.esm.js (full build) to vue.runtime.esm.js (runtime build). With the runtime build, there are two things that you cannot do:

    A) You cannot pass a string to template:

    new Vue({
      template: '<div>{{ hi }}</div>'
    })

    B) You cannot mount to a DOM element and use its HTML as your template:

     new Vue({
       el: '#app', // where <div id="app"> contains your Vue template
     });

    If you need this behavior, call Encore.addAliases({ vue$: 'vue/dist/vue.esm.js' });

  • [DEPENDENCY UPGRADE] sass-loader was upgraded from version 7 to 8.
    See the CHANGELOG for breaking changes. This likely will not affect you unless you pass custom options to Encore.enableSassLoader(): several options were moved or renamed - #758 thanks to @Kocal.

  • [BEHAVIOR CHANGE] Encore now resolves loaders directly from its node_modules/, instead of by name. This change will cause a behavior change if you do any of the following:

    • Add a different version of a loader (that Encore embeds) into your package.json: the different loader won't be used anymore.

    • Require a package that also included one of our embedded loaders: depending on which one was hoisted it could result in different behavior.

    • Manipulate the generated config and filter loaders based on their names: the comparison won't be the same anymore

    See #739 thanks to @Lyrkan.

  • [DEPENDENCY UPGRADE] Webpack minimum version was changed from 4.20.0 to 4.36.0 - see #746 and #758.

  • [DEPENDENCY UPGRADE] Upgraded clean-webpack-plugin from ^0.1.19 to ^3.0.0. You should not notice significant changes unless you use Encore.cleanupOutputBeforeBuild() and pass custom options. For more info, see v1 to v2 upgrade notes and v2 to v3 upgrade notes. There were no changes from 0.1.19 to 1.0.0. See #760 thanks to @weaverryan.

  • Encore will now correctly recognize a project-wide babel.config.js file - #738 thanks to @jdreesen.

  • [DEPENDENCY UPGRADE] The fork-ts-checker-webpack-plugin package was upgraded for the tests from ^0.4.1 to ^4.0.0. If you're using enableForkedTypeScriptTypesChecking(), you control the fork-ts-checker-webpack-plugin version in your package.json file. You should upgrade to ^4.0.0 to ensure that the plugin works correctly with Encore. See fork-ts-checker-webpack-plugin for details about the changes. See #759 thanks to @weaverryan.

  • Added support for Vue3 - #746 thanks to @weaverryan.

Happy Packing!

Don't miss a new webpack-encore release

NewReleases is sending notifications on new releases.