Skip to content

Commit 3975bfa

Browse files
Update comment
1 parent a848e77 commit 3975bfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export class Parser {
2121
const wasmModule = await WebAssembly.compile(wasmBinaries.core)
2222

2323
// Use instantiateWasm to provide custom WASM instantiation.
24-
// This bypasses tree-sitter's default URL-based loading which fails
25-
// in VS Code web extensions where import.meta.url is not available.
24+
// This bypasses tree-sitter's default URL-based loading which relies
25+
// on import.meta.url - unavailable in bundled or non-ESM environments.
2626
await TreeSitterParser.init({
2727
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2828
instantiateWasm(imports: any, successCallback: any) {

0 commit comments

Comments
 (0)