* Returns the path to the backing file during preview, relative to the source * root, which is the source file for the associated data loader if the file * is generated by a loader.
(path: string)
| 263 | * is generated by a loader. |
| 264 | */ |
| 265 | private getSourceFilePath(path: string): string { |
| 266 | if (!existsSync(join(this.root, path))) { |
| 267 | const loader = this.find(path); |
| 268 | if (loader) return loader.path; |
| 269 | } |
| 270 | return path; |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * Returns the path to the backing file during build, relative to the source |
no test coverage detected