fix: build web app as browser module

This commit is contained in:
2026-06-24 14:10:10 +08:00
parent 19e1ccf855
commit 2f858b3bf0
4 changed files with 31 additions and 3 deletions

15
tsconfig.web.json Normal file
View File

@@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ES2022",
"rootDir": "web",
"outDir": "dist/web",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"types": [],
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"noImplicitAny": true,
"strict": false
},
"include": ["web/**/*.ts"]
}