/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v5.100.2
examples/custom-json-modules/webpack.config.js
33 строки
441 B
Alexander Akait
chore: eslint more rules (#19648)
03 июл 2025, 12:06
Не верифицирован
03 июл 2025, 12:06
87f648e
Код
Авторство
О чём код?
"use strict"; const json5 = require("json5"); const toml = require("toml"); const yaml = require("yamljs"); module.exports = { module: { rules: [ { test: /\.toml$/, type: "json", parser: { parse: toml.parse } }, { test: /\.json5$/, type: "json", parser: { parse: json5.parse } }, { test: /\.yaml$/, type: "json", parser: { parse: yaml.parse } } ] } };