fix: build error

This commit is contained in:
Fang_Zhijian 2024-05-09 11:01:52 +08:00
parent f022efc94c
commit 90eda42278
4 changed files with 12 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "poros-demo-client", "name": "blive-coyote-demo-client",
"private": true, "private": true,
"version": "0.0.0", "version": "0.0.1",
"scripts": { "scripts": {
"dev": "vite --port 8888 --host 0.0.0.0 ", "dev": "vite --port 8888 --host 0.0.0.0 ",
"build": "vue-tsc --noEmit && vite build", "build": "vue-tsc --noEmit && vite build",

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,8 @@
"types": ["node"], "types": ["node"],
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"noImplicitAny": false, "noImplicitAny": false,
"forceConsistentCasingInFileNames": true "forceConsistentCasingInFileNames": true,
"skipLibCheck": true
}, },
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"], "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
"references": [{ "path": "./tsconfig.node.json" }] "references": [{ "path": "./tsconfig.node.json" }]

View File

@ -13,5 +13,10 @@ export default defineConfig({
"@": path.resolve(__dirname, "./src") "@": path.resolve(__dirname, "./src")
} }
}, },
plugins: [vue(), viteCommonjs()] plugins: [
vue(),
viteCommonjs({
include: ['danmaku-websocket.min.js']
}
)]
}) })