Skip to content

Commit 7f925f7

Browse files
chapterjasonclaude
andcommitted
Externalize ws, gitignore *.tgz
Vite picked ws's browser entry and bundled a non-functional WebSocketServer. Mark ws external (like node-pty) so the runtime resolves the Node build from node_modules. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent b942d86 commit 7f925f7

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/
55
*.log
66
.DS_Store
77
.vite/
8+
*.tgz

package-lock.json

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"preview": "npm run build && npm run start"
2323
},
2424
"dependencies": {
25-
"node-pty": "^1.1.0"
25+
"node-pty": "^1.1.0",
26+
"ws": "^8.20.0"
2627
},
2728
"devDependencies": {
2829
"@sourecode/virtual-keyboard": "github:SoureCode/virtual-keyboard#v0.1.2",
@@ -41,7 +42,6 @@
4142
"sass": "^1.99.0",
4243
"tsx": "^4.21.0",
4344
"typescript": "^6.0.3",
44-
"vite": "^8.0.9",
45-
"ws": "^8.20.0"
45+
"vite": "^8.0.9"
4646
}
4747
}

server/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default defineConfig({
1717
rollupOptions: {
1818
external: [
1919
"node-pty",
20+
"ws",
2021
"vite",
2122
...builtinModules,
2223
...builtinModules.map((m) => `node:${m}`),

0 commit comments

Comments
 (0)