Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

456 B
Raw Blame
const mainConfig = require("../../../../rspack.main.config");
const { IS_DEV_MODE } = require("../../shared/constants");

module.exports.OPTIMIZATION_CONFIG = {
  // The default `moduleIds: 'named'` setting breaks Cypress tests when `development` mode is enabled,
  // so we use a different value instead
  moduleIds: IS_DEV_MODE ? "natural" : undefined,

  minimize: !IS_DEV_MODE,
  minimizer: mainConfig.optimization.minimizer,

  splitChunks: false,
};