Closed jfayot closed 2 months ago
When using the plugin in its default mode (import cesium from 'vite-plugin-cesium-build') I can load draco compressed models without any issue.
import cesium from 'vite-plugin-cesium-build'
If I switch to @cesium/engine (import cesium from 'vite-plugin-cesium-build/engine'), I get the following error:
import cesium from 'vite-plugin-cesium-build/engine'
failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 64 6f @+0 (anonyme) @ chunk-TTI2SUWJ.js:817 chunk-TTI2SUWJ.js:415 Aborted(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 64 6f @+0) f @ chunk-TTI2SUWJ.js:415 @cesium_engine.js?v=4aebc6e8:154021 RuntimeError message: "Failed to load model: CesiumMilkTruck.gltf\nFailed to load glTF\nFailed to load vertex buffer\nDraco decoder could not be initialized." ...
It seems that the wasm files are missing (both in dev and build mode) for the @cesium/engine use case
Closed by #11
When using the plugin in its default mode (
import cesium from 'vite-plugin-cesium-build'
) I can load draco compressed models without any issue.If I switch to @cesium/engine (
import cesium from 'vite-plugin-cesium-build/engine'
), I get the following error:It seems that the wasm files are missing (both in dev and build mode) for the @cesium/engine use case