fix: 抑制警告

This commit is contained in:
手瓜一十雪 2024-11-16 11:45:57 +08:00
parent bd1faccaa8
commit 4f4bd3c6e0

View File

@ -12,7 +12,7 @@ const EXIT_CODES = [0, 255];
const FFMPEG_PATH = process.env.FFMPEG_PATH ?? 'ffmpeg';
async function getWorkerPath() {
return new URL('./audio-worker.mjs', import.meta.url).href;
return new URL(/* @vite-ignore */ './audio-worker.mjs', import.meta.url).href;
}
const piscina = new Piscina<EncodeArgs, EncodeResult>({