Update dependencies and Vite configuration

This commit is contained in:
kwaroran
2024-01-15 18:36:50 +09:00
parent 3cebbd330c
commit b609793a18
3 changed files with 722 additions and 499 deletions

View File

@@ -21,26 +21,26 @@
"@capacitor/filesystem": "^5.2.0", "@capacitor/filesystem": "^5.2.0",
"@dqbd/tiktoken": "^1.0.7", "@dqbd/tiktoken": "^1.0.7",
"@mlc-ai/web-tokenizers": "^0.1.2", "@mlc-ai/web-tokenizers": "^0.1.2",
"@smithy/protocol-http": "^3.0.10", "@smithy/protocol-http": "^3.0.12",
"@smithy/signature-v4": "^2.0.16", "@smithy/signature-v4": "^2.0.19",
"@tauri-apps/api": "1.5.1", "@tauri-apps/api": "1.5.1",
"@types/marked": "^5.0.2", "@types/marked": "^5.0.2",
"@types/streamsaver": "^2.0.4", "@types/streamsaver": "^2.0.4",
"@xenova/transformers": "^2.13.4", "@xenova/transformers": "^2.14.0",
"blueimp-md5": "^2.19.0", "blueimp-md5": "^2.19.0",
"body-parser": "^1.20.2", "body-parser": "^1.20.2",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"core-js": "^3.33.3", "core-js": "^3.35.0",
"cors": "^2.8.5", "cors": "^2.8.5",
"crc": "^4.3.2", "crc": "^4.3.2",
"dompurify": "^3.0.6", "dompurify": "^3.0.8",
"exifr": "^7.1.3", "exifr": "^7.1.3",
"express": "^4.18.2", "express": "^4.18.2",
"fflate": "^0.8.1", "fflate": "^0.8.1",
"gpt-3-encoder": "^1.1.4", "gpt-3-encoder": "^1.1.4",
"gpt3-tokenizer": "^1.1.5", "gpt3-tokenizer": "^1.1.5",
"html-to-image": "^1.11.11", "html-to-image": "^1.11.11",
"isomorphic-dompurify": "^1.9.0", "isomorphic-dompurify": "^1.13.0",
"jszip": "^3.10.1", "jszip": "^3.10.1",
"libsodium-wrappers-sumo": "^0.7.13", "libsodium-wrappers-sumo": "^0.7.13",
"localforage": "^1.10.0", "localforage": "^1.10.0",
@@ -50,27 +50,27 @@
"ml-distance": "^4.0.1", "ml-distance": "^4.0.1",
"mobile-drag-drop": "3.0.0-rc.0", "mobile-drag-drop": "3.0.0-rc.0",
"msgpackr": "^1.10.1", "msgpackr": "^1.10.1",
"node-html-parser": "^6.1.11", "node-html-parser": "^6.1.12",
"peerjs": "^1.5.1", "peerjs": "^1.5.2",
"png-chunk-text": "^1.0.0", "png-chunk-text": "^1.0.0",
"png-chunks-encode": "^1.0.0", "png-chunks-encode": "^1.0.0",
"png-chunks-extract": "^1.0.0", "png-chunks-extract": "^1.0.0",
"pngjs": "^7.0.0", "pngjs": "^7.0.0",
"rollup": "^3.29.4", "rollup": "^3.29.4",
"showdown": "^2.1.0", "showdown": "^2.1.0",
"sortablejs": "^1.15.0", "sortablejs": "^1.15.2",
"streamsaver": "^2.0.6", "streamsaver": "^2.0.6",
"three": "^0.154.0", "three": "^0.154.0",
"tippy.js": "^6.3.7", "tippy.js": "^6.3.7",
"uuid": "^9.0.1", "uuid": "^9.0.1",
"wasmoon": "^1.15.1", "wasmoon": "^1.16.0",
"wavefile": "^11.0.0", "wavefile": "^11.0.0",
"web-streams-polyfill": "^3.2.1" "web-streams-polyfill": "^3.3.2"
}, },
"devDependencies": { "devDependencies": {
"@capacitor/assets": "^3.0.4", "@capacitor/assets": "^3.0.4",
"@capacitor/cli": "^5.6.0", "@capacitor/cli": "^5.6.0",
"@sveltejs/vite-plugin-svelte": "^2.5.3", "@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"@tauri-apps/cli": "1.5.7", "@tauri-apps/cli": "1.5.7",
"@tsconfig/svelte": "^3.0.0", "@tsconfig/svelte": "^3.0.0",
@@ -80,7 +80,7 @@
"@types/lodash": "^4.14.202", "@types/lodash": "^4.14.202",
"@types/lodash.clonedeep": "^4.5.9", "@types/lodash.clonedeep": "^4.5.9",
"@types/lodash.isequal": "^4.5.8", "@types/lodash.isequal": "^4.5.8",
"@types/node": "^18.18.13", "@types/node": "^18.19.7",
"@types/pngjs": "^6.0.4", "@types/pngjs": "^6.0.4",
"@types/showdown": "^2.0.6", "@types/showdown": "^2.0.6",
"@types/sortablejs": "^1.15.7", "@types/sortablejs": "^1.15.7",
@@ -89,15 +89,15 @@
"@types/wicg-file-system-access": "^2020.9.8", "@types/wicg-file-system-access": "^2020.9.8",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"internal-ip": "^7.0.0", "internal-ip": "^7.0.0",
"postcss": "^8.4.31", "postcss": "^8.4.33",
"svelte": "^4.2.7", "svelte": "^4.2.8",
"svelte-check": "^3.6.2", "svelte-check": "^3.6.3",
"svelte-preprocess": "^5.1.1", "svelte-preprocess": "^5.1.3",
"tailwindcss": "^3.3.5", "tailwindcss": "^3.4.1",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"typescript": "^5.3.2", "typescript": "^5.3.3",
"vite": "^4.5.0", "vite": "^5.0.11",
"vite-plugin-top-level-await": "^1.3.1", "vite-plugin-top-level-await": "^1.4.1",
"vite-plugin-wasm": "^3.2.2" "vite-plugin-wasm": "^3.3.0"
} }
} }

1167
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,13 +6,8 @@ import { internalIpV4 } from 'internal-ip'
import topLevelAwait from "vite-plugin-top-level-await"; import topLevelAwait from "vite-plugin-top-level-await";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig(async () => { export default defineConfig({
const host = await internalIpV4()
return {
plugins: [ plugins: [
svelte({ svelte({
preprocess: [ preprocess: [
sveltePreprocess({ sveltePreprocess({
@@ -39,7 +34,6 @@ export default defineConfig(async () => {
strictPort: true, strictPort: true,
hmr: { hmr: {
protocol: 'ws', protocol: 'ws',
host,
port: 5184, port: 5184,
}, },
}, },
@@ -68,4 +62,4 @@ export default defineConfig(async () => {
'modules': '/modules' 'modules': '/modules'
} }
} }
}}); });