( format: ModuleFormat, type: string = 'commonjs', )
| 983 | type JsExt = 'js' | 'cjs' | 'mjs' |
| 984 | |
| 985 | function resolveOutputJsExtension( |
| 986 | format: ModuleFormat, |
| 987 | type: string = 'commonjs', |
| 988 | ): JsExt { |
| 989 | if (type === 'module') { |
| 990 | return format === 'cjs' || format === 'umd' ? 'cjs' : 'js' |
| 991 | } else { |
| 992 | return format === 'es' ? 'mjs' : 'js' |
| 993 | } |
| 994 | } |
| 995 | |
| 996 | export function resolveLibFilename( |
| 997 | libOptions: LibraryOptions, |
no outgoing calls
no test coverage detected