Skip to content

Commit 76fc788

Browse files
fix: 解决引入css时ts飘红
1 parent ade2ac5 commit 76fc788

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
declare module '*.css' {
2+
// 对于“副作用导入”(仅引入 CSS 生效,不使用导出内容),空声明即可
3+
const content: any;
4+
export default content;
5+
}

core/preload-screen/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131
},
3232
"include": [
33-
"src"
33+
"src/**/*"
3434
],
3535
"exclude": [
3636
"node_modules",

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2020",
3+
"target": "ESNext",
44
"module": "ESNext",
55
"moduleResolution": "bundler",
66
"strict": true,

0 commit comments

Comments
 (0)