Skip to content

fix(parser-adapter-yaml-1-2): use WebTreeSitter for Node.js lexical analysis#5139

Merged
glowcloud merged 6 commits intomainfrom
fix/swg-18591--nodejs-lexical-analysis
Mar 20, 2026
Merged

fix(parser-adapter-yaml-1-2): use WebTreeSitter for Node.js lexical analysis#5139
glowcloud merged 6 commits intomainfrom
fix/swg-18591--nodejs-lexical-analysis

Conversation

@glowcloud
Copy link
Contributor

@glowcloud glowcloud commented Mar 18, 2026

Fixes an issue where using ApiDOM in non-browser environments would still cause the error fixed in #5045 by switching to using web-tree-sitter instead of tree-sitter in Node.js adapter.

Note that this could have a negative impact on performance in Node.js environments, at least from taking a look at the documentation for web-tree-sitter:
web-tree-sitter

TODO:

  • fix an issue with import.meta.url in CommonJS modules

@glowcloud glowcloud self-assigned this Mar 18, 2026
@glowcloud glowcloud added the bug Something isn't working label Mar 18, 2026
@glowcloud glowcloud marked this pull request as ready for review March 19, 2026 07:04
@glowcloud glowcloud merged commit 2ed9cab into main Mar 20, 2026
8 of 9 checks passed
@glowcloud glowcloud deleted the fix/swg-18591--nodejs-lexical-analysis branch March 20, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants