mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Lib and plugins import Node.js modules such as events and buffer, which the build swaps for browser packages. Vite resolves an aliased import from the importing package, and pnpm only lets a package see its own dependencies, so the polyfills had to be dependencies of lib. Resolve them from web_ui with a small resolver plugin instead, also used by the dependency optimizer. Hosts no longer install the browser packages, and plugins get the same polyfills webpack gave them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
1.5 KiB
JSON
67 lines
1.5 KiB
JSON
{
|
|
"name": "@clusterio/web_ui",
|
|
"version": "2.0.3",
|
|
"description": "Clusterio web interface implementation",
|
|
"homepage": "https://github.com/clusterio/clusterio#readme",
|
|
"author": "Hornwitser",
|
|
"license": "MIT",
|
|
|
|
"keywords": [
|
|
"clusterio",
|
|
"factorio"
|
|
],
|
|
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/clusterio/clusterio"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/clusterio/clusterio/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
|
|
"browser": "src/index.ts",
|
|
"main": "dist/browser/src/index.js",
|
|
"scripts": {
|
|
"prepare": "tsc --build",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
|
|
"dependencies": {
|
|
"@ant-design/icons": "catalog:",
|
|
"@clusterio/lib": "workspace:^",
|
|
"@sinclair/typebox": "catalog:",
|
|
"@vitejs/plugin-react": "catalog:",
|
|
"antd": "catalog:",
|
|
"assert": "^2.1.0",
|
|
"browserify-zlib": "^0.2.0",
|
|
"buffer": "^6.0.3",
|
|
"events": "^3.3.0",
|
|
"os-browserify": "^0.3.0",
|
|
"path-browserify": "^1.0.1",
|
|
"process": "^0.11.10",
|
|
"rc-field-form": "^1.44.0",
|
|
"react": "catalog:",
|
|
"react-dom": "catalog:",
|
|
"react-markdown": "catalog:",
|
|
"react-router": "catalog:",
|
|
"react-router-dom": "catalog:",
|
|
"semver": "catalog:",
|
|
"stream-browserify": "^3.0.0",
|
|
"typescript": "catalog:",
|
|
"util": "^0.12.5",
|
|
"vite": "catalog:"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "catalog:",
|
|
"@types/react": "catalog:",
|
|
"@types/react-dom": "^18.3.7",
|
|
"@types/semver": "catalog:"
|
|
}
|
|
}
|