(nickName: string, moduleId: string)
| 105 | |
| 106 | global.registerBundlerModules = function registerBundlerModules(context: Context, extensionMap: ExtensionMap = {}) { |
| 107 | const registerWithName = (nickName: string, moduleId: string) => { |
| 108 | modules.set(nickName, { |
| 109 | moduleId, |
| 110 | loader: () => { |
| 111 | return context(moduleId); |
| 112 | }, |
| 113 | }); |
| 114 | }; |
| 115 | |
| 116 | const registerModuleById = (moduleId: string) => { |
| 117 | const extDotIndex = moduleId.lastIndexOf('.'); |
no test coverage detected