Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export default defineConfig(({ command, mode, isSsrBuild }) => {
minify: false,
sourcemap: true,
outDir: path.resolve(__dirname, 'dist'),
// Never inline SVGs as data URIs. The renderer routes file-URL SVGs
// through loadSvg (canvas rasterization), but data-URI SVGs fall
// through to createImageBitmap, which Chromium can't decode for SVG
// blobs — those textures end up empty. Other asset types keep the
// default inline threshold.
assetsInlineLimit: (filePath) =>
filePath.endsWith('.svg') ? false : undefined,
},
server: {
headers: {
Expand Down
Loading