MCPcopy Create free account
hub / github.com/stenciljs/core / shouldCheckDevModule

Function shouldCheckDevModule

src/compiler/bundle/dev-node-module-resolve.ts:50–59  ·  view source on GitHub ↗
(resolvedId: ResolveIdResult, importee: string)

Source from the content-addressed store, hash-verified

48};
49
50const shouldCheckDevModule = (resolvedId: ResolveIdResult, importee: string) =>
51 resolvedId &&
52 importee &&
53 typeof resolvedId !== 'string' &&
54 resolvedId.id &&
55 resolvedId.id.includes('node_modules') &&
56 (resolvedId.id.endsWith('.js') || resolvedId.id.endsWith('.mjs')) &&
57 !resolvedId.external &&
58 !importee.startsWith('.') &&
59 !importee.startsWith('/');
60
61const getPackageJsonPath = (resolvedPath: string, importee: string): string => {
62 let currentPath = resolvedPath;

Callers 1

devNodeModuleResolveIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected