MCPcopy
hub / github.com/stenciljs/core / resolve

Function resolve

src/utils/path.ts:251–257  ·  view source on GitHub ↗
(...paths: string[])

Source from the content-addressed store, hash-verified

249 * @returns a resolved path!
250 */
251export function resolve(...paths: string[]): string {
252 /**
253 * When normalizing, we should _not_ attempt to relativize the path returned by the native Node `resolve` method. When
254 * calculating the path from each of the string-based parts, Node does not prepend './' to the calculated path.
255 */
256 return normalizePath(path.resolve(...paths), false);
257}
258
259/**
260 * A wrapped version of node.js' {@link path.normalize} which adds our custom

Callers 15

path.spec.tsFile · 0.90
readableToStringFunction · 0.85
asyncThingMethod · 0.85
global.tsFile · 0.85
timeoutFunction · 0.85
startServerFunction · 0.85
onAppLoadFunction · 0.85
componentWillLoadMethod · 0.85
componentWillLoadMethod · 0.85
afterHydrateFunction · 0.85
fileExistsFunction · 0.85
readFileFunction · 0.85

Calls 2

normalizePathFunction · 0.85
resolveMethod · 0.80

Tested by 5

myPluginFunction · 0.68
promiseMethodMethod · 0.68
componentWillLoadMethod · 0.68
componentWillUpdateMethod · 0.68
componentWillRenderMethod · 0.68