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

Function isExtensionLessPath

src/dev-server/dev-server-utils.ts:79–83  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

77}
78
79export function isExtensionLessPath(pathname: string) {
80 const parts = pathname.split('/');
81 const lastPart = parts[parts.length - 1];
82 return !lastPart.includes('.');
83}
84
85export function isSsrStaticDataPath(pathname: string) {
86 const parts = pathname.split('/');

Callers 2

defaultHandlerFunction · 0.90
util.spec.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected