/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/define-config/webpack.config.js
10 строк
316 B
Alexander Akait
feat: add defineConfig helper for typed configuration files (#21169)
17 июн 2026, 19:34
Не верифицирован
17 июн 2026, 19:34
4fa6844
Код
Авторство
О чём код?
"use strict"; const { defineConfig } = require("webpack"); // `defineConfig` is an identity function at runtime; it exists so editors type-check // the configuration. It also accepts an array, a `(env, argv) => config` function, // or a `Promise` of any of those. module.exports = defineConfig({ mode: "none" });