(name: string)
| 143 | * @example ../../src/react/createComponent.js -> effector-react/createComponent.js |
| 144 | */ |
| 145 | export 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…