/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/validate/loader-options/loader.js
12 строк
354 B
Alexander Akait
build: upgrade typescript to v6 (#20982)
19 май 2026, 23:56
Не верифицирован
19 май 2026, 23:56
f8076be
Код
Авторство
О чём код?
const schema = /** @type {EXPECTED_ANY} */ (require("./loader.options.json")); /** @type {import("../../../../").LoaderDefinition} */ module.exports = function () { const options = this.getOptions(schema); const json = JSON.stringify(options) .replace(/\u2028/g, "\\u2028") .replace(/\u2029/g, "\\u2029"); return `module.exports = ${json}`; };