lib.experiments
Used to enable some Rslib experimental features.
experiments.advancedEsm
- Type:
boolean - Default:
true
Controls whether to enable Rspack experimental ESM output. When enabled, it emits ESM output that is high-quality, more friendly to static analysis, and supports code splitting.
Info
Currently this option only takes effect in bundle mode when format is 'esm'.
If you need to disable this feature, you can set it to false:
rslib.config.ts
