lib.umdName

  • Type: string
  • Default: undefined

The export name of the UMD bundle.

TIP

The module name of the UMD bundle must not conflict with the global variable name.

Example

The UMD bundle will be mounted to global.MyLibrary.

rslib.config.ts
1export default {
2  lib: [
3    {
4      format: 'umd',
5      umdName: 'MyLibrary',
6    },
7  ],
8};
ON THIS PAGE