/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/worker/worklet-optimization/index.js
9 строк
508 B
Alexander Akait
feat: worklet support via module.parser.javascript.worklet (#21384)
13 июл 2026, 22:50
Не верифицирован
13 июл 2026, 22:50
72e263e
Код
Авторство
О чём код?
it("should pre-load split and runtime chunks into the worklet", async () => { const context = new AudioContext(); await context.audioWorklet.addModule(new URL("./worklet.js", import.meta.url)); const factory = context.audioWorklet.registrations.get("test"); expect(typeof factory).toBe("function"); // upper (entry) + VENDOR (split chunk) + suffix (async chunk) all resolved; // only reachable if the bootstrap pre-added every chunk into the worklet expect(await factory("ok")).toBe("OK-V/DONE"); });