/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/worker/worklet-module/worklet.js
6 строк
293 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"; import { VENDOR } from "./vendor.js"; // upper stays in the entry chunk; VENDOR is forced into a split chunk that the // module worklet links via native `import` (no runtime chunk pre-loading). registerProcessor("test", (input) => upper(input) + VENDOR);