MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / req

Function req

packages/vite/shims/node-module.ts:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2// We only provide createRequire to avoid hard crashes; it is a noop in NS.
3export 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 };

Callers 14

buildTargetFunction · 0.85
performResetRootFunction · 0.85
getCoreFunction · 0.85
getModFunction · 0.85
ensureVueGlobalsFunction · 0.85
ensurePiniaOnAppFunction · 0.85
ensureNsVueBootstrapFunction · 0.85
bridgePiniaProvidesFunction · 0.85
getRootForVueFunction · 0.85
getCoreFunction · 0.85
populateInitialGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected