{
? "vueCompilerOptions": {
? ? "experimentalDisableTemplateSupport": true // 去掉volar下el標(biāo)簽紅色波浪線問題
? },
? "compilerOptions": {
? ? "target": "esnext",// 指定ECMAScript目標(biāo)版本
? ? "module": "esnext",// 指定生成哪個(gè)模塊系統(tǒng)代碼
? ? "lib": ["esnext", "dom", "dom.iterable", "scripthost"] ,// 編譯過程中需要引入的庫文件的列表欲虚。
? ? "jsx": "preserve",// 支持jsx語法
? ? // 啟用所有嚴(yán)格類型檢查選項(xiàng)欣喧。
? ? // 啟用 --strict相當(dāng)于啟用 --noImplicitAny, --noImplicitThis, --alwaysStrict,
? ? // --strictNullChecks和 --strictFunctionTypes和--strictPropertyInitialization驯鳖。
? ? "strict": true ,
? ? /* Module Resolution Options */
? ? "moduleResolution": "node" ,// 決定如何處理模塊阎姥。
? ? "baseUrl": ".",// 解析非相對(duì)模塊名的基準(zhǔn)目錄
? ? "paths": {
? ? ? "/@/*": ["src/*"]
? ? },// 模塊名到基于 baseUrl的路徑映射的列表泽腮。
? ? "types": ["vite/client"],// 要包含的類型聲明文件名列表
? ? "allowSyntheticDefaultImports": true ,// 允許從沒有設(shè)置默認(rèn)導(dǎo)出的模塊中默認(rèn)導(dǎo)入。這并不影響代碼的輸出碧磅,僅為了類型檢查。
? ? "experimentalDecorators": true, // 修飾器
? ? /* Advanced Options */
? ? "skipLibCheck": true, // 忽略所有的聲明文件( *.d.ts)的類型檢查。
? ? "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
? }
}