Skip to content
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

Improve performance on Vue.js projects #4352

Closed
vdiez opened this issue Nov 2, 2023 · 1 comment · Fixed by #4595
Closed

Improve performance on Vue.js projects #4352

vdiez opened this issue Nov 2, 2023 · 1 comment · Fixed by #4595
Assignees
Milestone

Comments

@vdiez
Copy link
Contributor

vdiez commented Nov 2, 2023

Vue parser has some performance issues when used with typescript-eslint: vuejs/vue-eslint-parser#104

Investigate workarounds to avoid rebuilding type information when parsing code frames.

Community tickets:

  1. https://community.sonarsource.com/t/sonarcloud-javascript-analysis-super-slow/94509/10
  2. https://community.sonarsource.com/t/sonarcloud-w-bitbucket-vuejs/97645
  3. https://community.sonarsource.com/t/eslint-bridge-is-unresponsive-despite-high-maxspace/101858
  4. https://community.sonarsource.com/t/error-parsing-vue-files/95914
  5. https://community.sonarsource.com/t/very-slow-javascript-typescipt-analysis-for-project/99038/16
@vdiez
Copy link
Contributor Author

vdiez commented Nov 7, 2023

Consider using babel-typescript preset to be able to parse .vue files containing TypeScript with Babel, even if we lose type checking. Right now with espree we can only do the workaround with js.

We should use the parameter sonar.javascript.allowTsParserJsFiles for the decision-making of the parser.

https://babeljs.io/docs/babel-preset-typescript

@vdiez vdiez linked a pull request Mar 13, 2024 that will close this issue
@vdiez vdiez added this to the 10.13 milestone Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant