Experiments

experiments

boolean: false

experiments option was introduced in webpack 5 in order to empower users with an ability of activating and trying out experimental features.

Because experimental features have relaxed semantic versioning and might contain breaking changes, make sure to fix webpack's version to minor e.g. webpack: ~5.4.3 instead of webpack: ^5.4.3 or use a lockfile when using experiments.

Available options:

webpack.config.js

module.exports = {
  //...
  experiments: {
    mjs: true
  }
};

Contributors