/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/worker/worklet-module/test.config.js
21 строка
394 B
Alexander Akait
feat: worklet support via module.parser.javascript.worklet (#21384)
13 июл 2026, 22:50
Не верифицирован
13 июл 2026, 22:50
72e263e
Код
Авторство
О чём код?
"use strict"; let outputDirectory; module.exports = { moduleScope(scope) { const { createWorklet } = require("../../../helpers/createFakeWorklet")({ outputDirectory }); scope.AudioContext = class AudioContext { constructor() { this.audioWorklet = createWorklet(); } }; }, findBundle(i, options) { outputDirectory = options.output.path; return ["main.mjs"]; } };