Function
writeUnreadCommonJsMessage
(
path: string,
name: string
)
Source from the content-addressed store, hash-verified
| 7109 | // a module tsc didn't write, or an export it writes as statements that run, |
| 7110 | // like an enum's |
| 7111 | export const writeUnreadCommonJsMessage = ( |
| 7112 | path: string, |
| 7113 | name: string |
| 7114 | ): string => |
| 7115 | `${path} is CommonJS, which the build reads only where it sets \`exports.${name}\` once, to a value, as tsc writes \`export const ${name} = ...\`` |
| 7116 | |
| 7117 | const importedNameOf = ( |
| 7118 | module: SourceModule, |
Tested by
no test coverage detected