mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 00:45:28 +00:00

Set `moduleResolution` as `node16` in tsconfig.json. ps. https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/9296272681/job/25586420457 ``` node_modules/@vscode/test-electron/out/util.d.ts(1,23): error TS1452: 'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`. ```
18 lines
681 B
JSON
18 lines
681 B
JSON
{
|
|
"compilerOptions": {
|
|
"module": "commonjs",
|
|
"moduleResolution": "node16",
|
|
"target": "es6",
|
|
"outDir": "out",
|
|
"lib": ["es6"],
|
|
"sourceMap": true,
|
|
"rootDir": "src",
|
|
"strict": true /* enable all strict type-checking options */
|
|
/* Additional Checks */
|
|
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
|
|
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
|
|
// "noUnusedParameters": true, /* Report errors on unused parameters. */
|
|
},
|
|
"exclude": ["node_modules", ".vscode-test"]
|
|
}
|