(_url: string)
| 1 | // Minimal shim for `node:module` to satisfy imports from vite/module-runner. |
| 2 | // We only provide createRequire to avoid hard crashes; it is a noop in NS. |
| 3 | export function createRequire(_url: string) { |
| 4 | const req: any = function () { |
| 5 | throw new Error('createRequire is not supported in NativeScript runtime'); |
| 6 | }; |
| 7 | req.resolve = function () { |
| 8 | throw new Error('require.resolve is not supported in NativeScript runtime'); |
| 9 | }; |
| 10 | return req; |
| 11 | } |
| 12 | |
| 13 | export default { createRequire }; |
nothing calls this directly
no outgoing calls
no test coverage detected