Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#3412·fresh

Support: Web Worker import with query suffixes

Author: ch2i5Created Sep 12, 2025Updated Jun 16, 2026
Labelsbug

Vite supports importing Web Workers with query suffixes, e.g. import MyWorker from './worker?worker&url';, which can then be used to for example add an audio worklet audioContext.audioWorklet.addModule(MyWorker);

https://vite.dev/guide/features.html#import-with-query-suffixes

Currently an error is thrown:

[vite] (ssr) Error when evaluating SSR module fresh:server_entry: Import 'file:///User/.../MyWorker.ts%3Fworker&url' failed, not found.

at wbindgen_error_new (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:1073:15)
at wasm://wasm/01438d62:wasm-function 11086] :0x404151 
at wasm://wasm/01438d62:wasm-function 4736]:0x39979c 
at wasm://wasm/01438d62:wasm-function[118] :0x3e24d 
at wasm://wasm/01438d62:wasm-function[1983]:0x3011cb 
at wasm://wasm/ 01438d62:wasm-function 10418:0x3fb858 
at wasm://wasm/ 01438d62:wasm-function 11766:0x4081aa
at __wbg_adapter_54 (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:252:8)
at real (https://jsr.io/@deno/loader/0.3.5/src/lib/rs_lib.internal.js:156:14)
at ext: core/01_core.js:295:9

Source: freshframework/fresh

View original on GitHubView discussion on GitHub