/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/module/import-phase/phase-loader.js
11 строк
302 B
magic-akari
feat: support source phase import for WebAssembly modules (#20364)
08 апр 2026, 15:28
Не верифицирован
08 апр 2026, 15:28
7cdc173
Код
Авторство
О чём код?
"use strict"; /** @typedef {import("../../../../types").LoaderDefinition<{ phase: string }>} LoaderDefinition */ /** @type {LoaderDefinition} */ module.exports = function (source) { const options = this.getOptions(); return `${source}\nexport default ${JSON.stringify( options.phase )};\n`; };