We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite
vite does not properly copy the .wasm file when the @rerun-io/web-viewer dependency is optimized:
.wasm
@rerun-io/web-viewer
new URL(foo, import.meta.url)
This results in web viewer being unable to load the .wasm file at runtime during vite dev.
vite dev
The workaround is to disable optimization for the package:
return defineConfig({ optimizeDeps: { exclude: process.env.NODE_ENV === "production" ? [] : ["@rerun-io/web-viewer"], }, });
vite build works fine, because the .wasm file is properly copied into dist
vite build
dist
The text was updated successfully, but these errors were encountered:
No branches or pull requests
vite
does not properly copy the.wasm
file when the@rerun-io/web-viewer
dependency is optimized:new URL(foo, import.meta.url)
doesn't work when dependency was optimized vitejs/vite#8427This results in web viewer being unable to load the
.wasm
file at runtime duringvite dev
.The workaround is to disable optimization for the package:
vite build
works fine, because the.wasm
file is properly copied intodist
The text was updated successfully, but these errors were encountered: