* Renders node prefix for core module. * @param {string} mod a module * @returns {string} a module with `node:` prefix when supported, otherwise an original name
(mod)
| 242 | * @returns {string} a module with `node:` prefix when supported, otherwise an original name |
| 243 | */ |
| 244 | renderNodePrefixForCoreModule(mod) { |
| 245 | return this.outputOptions.environment.nodePrefixForCoreModules |
| 246 | ? `"node:${mod}"` |
| 247 | : `"${mod}"`; |
| 248 | } |
| 249 | |
| 250 | /** |
| 251 | * Renders return const when it is supported, otherwise let when supported, otherwise var. |
no outgoing calls
no test coverage detected