fix: move node-forge to devDependencies for proper bundling
Moving node-forge from dependencies to devDependencies ensures it gets bundled into the plugin instead of being externalized. This is required because Headlamp doesn't provide node-forge as a shared library. The .pluginrc file with empty externals forces bundling of all deps, and keeping node-forge in devDependencies makes this behavior explicit. This fixes the frontend loading error: "TypeError: undefined is not an object (evaluating 'Ot.KubeObject')" Changes: - Moved node-forge from dependencies to devDependencies - Updated package-lock.json to mark node-forge as dev dependency - .pluginrc remains in place to enforce bundling Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -56,13 +56,11 @@
|
||||
"overrides": {
|
||||
"typescript": "5.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"node-forge": "^1.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@iconify/react": "^6.0.2",
|
||||
"@kinvolk/headlamp-plugin": "^0.13.0",
|
||||
"@types/node-forge": "^1.3.11",
|
||||
"node-forge": "^1.3.1",
|
||||
"typedoc": "^0.28.16",
|
||||
"typedoc-plugin-markdown": "^4.10.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user