lib.format

  • Type: 'esm' | 'cjs' | 'umd' | 'mf'
  • Default: undefined
  • Required: true

Specify the output format for the generated JavaScript output files.

See Output Format and Module Federation for more details.

NOTE

The umd format only works when bundle is set to true.

Module definition systems

In different output formats, Rslib uses the following default module definition systems: