fix: Android 上強制使用 @rollup/wasm-node

This commit is contained in:
CrescentLeaf
2025-09-13 12:28:02 +08:00
parent 633cfed87b
commit 1deec533ad
3 changed files with 43 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"tasks": {
"build": "deno run -A --node-modules-dir npm:vite build",
"build-watch": "deno run -A --node-modules-dir npm:vite --watch build"
"build": "deno run --allow-run --allow-env --allow-read checkIsAndroidAndBuild.ts npm:vite build",
"build-watch": "deno run --allow-run --allow-env --allow-read checkIsAndroidAndBuild.ts npm:vite --watch build"
},
"compilerOptions": {
"lib": ["ES2022", "DOM", "DOM.Iterable"],
@@ -17,6 +17,8 @@
"react": "npm:react@18.3.1",
"react-dom": "npm:react-dom@18.3.1",
"vite": "npm:vite@7.0.6",
"rollup": "npm:@rollup/wasm-node@4.48.0",
"chalk": "npm:chalk@5.4.1",