fix: monaco-editor offline

This commit is contained in:
tao.chen
2026-08-20 20:11:06 +08:00
parent d3259ba452
commit 6a8bdf6b16
4 changed files with 29 additions and 15 deletions
+5 -1
View File
@@ -6,7 +6,11 @@
"build": "react-router build",
"dev": "react-router dev",
"start": "react-router-serve ./build/server/index.js",
"typecheck": "react-router typegen && tsc"
"typecheck": "react-router typegen && tsc",
"copy:monaco": "node scripts/copy-monaco.mjs",
"postinstall": "node scripts/copy-monaco.mjs",
"predev": "node scripts/copy-monaco.mjs",
"prebuild": "node scripts/copy-monaco.mjs"
},
"dependencies": {
"@monaco-editor/react": "^4.7.0",