mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
[js/web] fix ESLint by excluding generated .js from tsconfig.json (#18634)
### Description ESLint will went into error sometimes. The root cause is because some large generated JavaScript file in the tsconfig's include path will cause TypeScript parser fail in a line of `string.match()` with a regex on a huge string (~8MB), causing the following error: ``` RangeError: Maximum call stack size exceeded ``` The solution is to remove the large files from the tsconfig's include path. Previously I excluded the `web/dist/` folder and this PR excludes `web/test/ort.test[.min].js`.
This commit is contained in:
parent
23a91c8ba8
commit
e7f64f4510
1 changed files with 1 additions and 1 deletions
|
|
@ -6,5 +6,5 @@
|
|||
"typeRoots": ["./node_modules/@webgpu/types", "./node_modules/@types", "../node_modules/@types"]
|
||||
},
|
||||
"include": ["lib", "test"],
|
||||
"exclude": ["lib/wasm/proxy-worker"]
|
||||
"exclude": ["lib/wasm/proxy-worker", "test/ort.test.js", "test/ort.test.min.js"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue