Intentionally made minimal changes from the default vite scaffolding.
Uses the ES6 packaging from Babylon.js and tree shaking. With this repo and babylon.js 5.0.0-beta.7, vite is reporting a vendor build size of 2.5MB (562k gzipped). If importing all of @babylonjs/core, the build size goes to ~4MB.
This repo includes enough setup to make sure controller models can be loaded for supported XR devices and that basic teleportation works.
Please see comments on the PR (or in source) regarding one of the errors I was seeing. I am not sure if that error (and the corresponding import to resolve it) is expected. If it is not, might be confusing to see it in the docs.