Sponsor webpack and get apparel from the official shop! All proceeds go to our open collective!
experimentsboolean: 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.3instead ofwebpack: ^5.4.3or use a lockfile when usingexperiments.
Available options:
mjs: Support .mjs files as a way to define EcmaScript modulesoutputModule: enables the use of output.module configuration option and sets it to true. Enables the use of output.libraryTarget as 'module' and sets it to 'module'.webpack.config.js
module.exports = {
  //...
  experiments: {
    mjs: true
  }
};

