MCPcopy Create free account
hub / github.com/effector/effector / getSourcemapPathTransform

Function getSourcemapPathTransform

tools/builder/utils.ts:145–153  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

143 * @example ../../src/react/createComponent.js -> effector-react/createComponent.js
144 */
145export function getSourcemapPathTransform(name: string) {
146 const nameWithoutSuffix = name
147 .replace('effector-', '')
148 .replace('@effector/', '')
149 const packageRoot = join('../..', 'src', nameWithoutSuffix)
150
151 return (relativePath: string) =>
152 `${name}/${relative(packageRoot, relativePath)}`
153}

Callers 4

rollupEffectorFunction · 0.90
runBuildFunction · 0.90
createCompatFunction · 0.90
createEsCjsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…