Function cleanStackFrameFilePath
- cleanStackFrameFilePath(
__namedParameters: {
currentFilePath: string;
pluginLocations: { name: string; pluginPath: string }[];
projectRoot: string;
},
): string Parameters
- __namedParameters: {
currentFilePath: string;
pluginLocations: { name: string; pluginPath: string }[];
projectRoot: string;
}
Returns string
If the given file path is within a node_modules folder, remove prefix up to and including the node_modules folder.
This gives us very consistent paths for errors generated by the CLI.