format
- Type:
optionalformat:"es"|"cjs"|"esm"|"module"|"commonjs"|"iife"|"umd"
Defined in: options/output-options.ts:143
Expected format of generated code.
'es','esm'and'module'are the same format, all stand for ES module.'cjs'and'commonjs'are the same format, all stand for CommonJS module.'iife'stands for Immediately Invoked Function Expression.'umd'stands for Universal Module Definition.
Default
ts
'esm'