-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in webstorm terminal can implement error click position #319
Comments
@Miofly const nm: string = path.join(root, 'node_modules');
const loggerFile = path.join(nm, 'vite-plugin-checker', 'dist', 'esm', 'logger.js');
if (await fs.exists(loggerFile)) {
let source = await fs.readFile(loggerFile, 'utf8');
if (!source.includes('pathToFileURL')) {
source = `import { pathToFileURL } from "url";\n${source}`;
}
source = source.replace(/(fileLabel ?\+ ?)(d\.id)/, (_m, p1, p2) => `${p1} pathToFileURL(${p2})`);
await fs.writeFile(loggerFile, source);
} |
where is this code executed |
|
I am getting an error: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
example i use vite-plugin-eslint,this plugin output lineNo click can locate the location of the error file
Describe the solution you'd like
example i use vite-plugin-eslint,this plugin output lineNo click can locate the location of the error file
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: