We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a848e77 commit 3975bfaCopy full SHA for 3975bfa
1 file changed
src/core/parser.ts
@@ -21,8 +21,8 @@ export class Parser {
21
const wasmModule = await WebAssembly.compile(wasmBinaries.core)
22
23
// 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.
+ // This bypasses tree-sitter's default URL-based loading which relies
+ // on import.meta.url - unavailable in bundled or non-ESM environments.
26
await TreeSitterParser.init({
27
// eslint-disable-next-line @typescript-eslint/no-explicit-any
28
instantiateWasm(imports: any, successCallback: any) {
0 commit comments