/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/worker/worklet/worklet.js
8 строк
332 B
Alexander Akait
feat: worklet support via module.parser.javascript.worklet (#21384)
13 июл 2026, 22:50
Не верифицирован
13 июл 2026, 22:50
72e263e
Код
Авторство
О чём код?
import { upper } from "./helper.js"; // Registered in the worklet scope; exercises a static import (bundled into the // entry chunk) and a dynamic import (a separate chunk pre-added by the bootstrap). registerProcessor("test", async (input) => { const { suffix } = await import("./dynamic.js"); return upper(input) + suffix; });