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

Function isNativeScriptCoreModule

packages/vite/hmr/server/websocket.ts:111–113  ·  view source on GitHub ↗
(spec: string)

Source from the content-addressed store, hash-verified

109 return /@nativescript(?:[\/_-])core(?:[\/_-])globals/.test(spec || '');
110}
111function isNativeScriptCoreModule(spec: string): boolean {
112 return /^(?:@nativescript[\/_-]core|@nativescript\/core)(?:\b|\/)/i.test(spec || '');
113}
114function isNativeScriptPluginModule(spec: string): boolean {
115 return /^@nativescript\//i.test(spec || '') && !isNativeScriptCoreModule(spec || '');
116}

Callers 9

shouldRemapImportFunction · 0.85
registerDependencyFileFunction · 0.85
cleanCodeFunction · 0.85
replaceVueImportFunction · 0.85
addCandidateFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected