MCPcopy
hub / github.com/facebook/docusaurus / aliasedSource

Function aliasedSource

packages/docusaurus-plugin-content-docs/src/index.ts:102–103  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

100 // module aliasing should be automatic
101 // we should never find local absolute FS paths in the codegen registry
102 const aliasedSource = (source: string) =>
103 `~docs/${posixPath(path.relative(pluginDataDirRoot, source))}`;
104
105 // TODO env should be injected into all plugins
106 const env = process.env.NODE_ENV as DocEnv;

Callers

nothing calls this directly

Calls 1

posixPathFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…