Brought Example up to spec
Some checks failed
CI / checks (push) Failing after 2m25s

This commit is contained in:
Alex Emmet 2026-07-19 00:29:24 +02:00
commit eaae9b0d13
41 changed files with 1695 additions and 655 deletions

View file

@ -371,6 +371,13 @@ export function mtp(options: MTPVitePluginOptions): VitePlugin {
await buildIfNeeded(state);
return {
// The generated wasm-bindgen JavaScript imports its sibling `.wasm`
// by a relative URL. Prebundling it independently lets Vite retain an
// older wrapper while the plugin has rebuilt the wasm binary, which
// produces missing closure-export errors at runtime.
optimizeDeps: {
exclude: ["mtp", "mtp/raw", "mtp/type-map"],
},
resolve: {
preserveSymlinks: true,
alias: {