From 09dbaa45f315a5c7efbb680eb5fc8676f2715de9 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Wed, 1 Jan 2025 23:03:53 +0000 Subject: [PATCH] Don't inline anything (well, really only audio workers). Fixes #468 --- vite.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 7c6c95b..a4f5303 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,9 +1,11 @@ import { configDefaults } from "vitest/config"; -/** @type {import('vite').UserConfig} */ +/** @type {import("vite").UserConfig} */ export default { build: { sourcemap: true, + // Prevent inlining; we don't want any worklets/audio workers to be inlined as that doesn't work. + assetsInlineLimit: 0, }, test: { include: [...configDefaults.include, "tests/unit/**/*.js", "tests/integration/**/*.js"],