/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/loaders/options/loader.js
10 строк
268 B
Tobias Koppers
test typings and fix type problems in loaders in the test suite
22 апр 2021, 22:48
22 апр 2021, 22:48
4e70b37
Код
Авторство
О чём код?
/** @type {import("../../../../").LoaderDefinition} */ module.exports = function () { const options = this.getOptions(); const json = JSON.stringify(options) .replace(/\u2028/g, "\\u2028") .replace(/\u2029/g, "\\u2029"); return `module.exports = ${json}`; };