I was using inspector feature before installing it separately, the app fetches inspector code from unpkg.com.
the problem is unpkg.com is not always available on my network environment, so I tried bundling it into my project by installing @babylonjs/inspector
.
The project dependency before (only related):
"babylonjs": "^5.31.0",
"babylonjs-loaders": "^5.31.0",
"vue": "^3.2.41",
"typescript": "^4.6.4",
"vite": "^3.2.0",
"vue-tsc": "^1.0.20"
then I installed @babylonjs/inspector
, the IDE warns all class
prop in the vue template (by vscode volar plugin).
after a little diagnose work, I found @babylonjs/inspector
installed some react type, like @types/react-dom
, which breaks vue’s default dom types.
so here is my request:
- I want to fetch inspector code from within my project, without breaking types, or
- I want to designate
babylon.inspector.bundle.js
location to my own CDN
Thanks.