Skip to content

v3.0.0-beta.8

Pre-release
Pre-release
Compare
Choose a tag to compare
@cshawaus cshawaus released this 27 Oct 13:20
· 40 commits to develop since this release
v3.0.0-beta.8
4ef651d

🚀 Features

  • Added Vue 3 support
  • Features can now have custom options for more refined configuration

💥 Breaking Changes

  • Updated the features configuration value to an object rather than an array

🐛 Bug Fixes

  • Added missing webpack HMR plugin when hmr flag was set

🧰 Maintenance

  • Updated all NPM dependencies to their latest releases

Features configuration

The features configuration structure has changed from an array to an object of key/value pairs which enables more refined control. Vue is currently only taking advantage of this but others will follow suit in future updates when it becomes a need for them too. Using Vue as our example, the new structure looks like the below.

module.exports = {
  features: {
    vue: {
      version: 3,
    },
  },
}

You can find all the supported configuration options at the following link: https://github.com/aem-design/npm-compose-webpack/blob/develop/src/types/feature.ts#L28-L81.

For features that don't support options, you can configure them using a boolean value which is a toggle for enabled/disabled or pass an empty object.

module.exports = {
  features: {
    bootstrap: false,
    typescript: true,
    vue: {},
  },
}