- 更新SCSS导出方式,支持引用SCSS变量系统(编译为CSS) - 修复SCSS类名不对应问题 - 修复无types导出问题 - 修改导出路径,避免vite build覆盖其余编译产物 - 支持tree-shaking,不暴露内部路径 BREAKING CHANGES: 1.0.0->2.0.0
31 lines
898 B
JSON
31 lines
898 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
"moduleResolution": "node",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": false,
|
|
"emitDeclarationOnly": true,
|
|
"declaration": true,
|
|
"declarationDir": "dist/types",
|
|
"jsx": "preserve",
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"baseUrl": ".",
|
|
"types": ["vite/client"],
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"~/*": ["./src/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
"exclude": ["src/**/*.test.ts", "src/**/*.spec.ts", "test/**"],
|
|
"references": [{ "path": "./tsconfig.node.json" }]
|
|
} |