/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/runtime/logical-assignment/webpack.config.js
29 строк
761 B
Sebastian Beltran
feat: add support for logical assignment operators in environment config (#21219)
20 июн 2026, 12:47
Не верифицирован
20 июн 2026, 12:47
12b8106
Код
Авторство
О чём код?
"use strict"; const webpack = require("../../../../"); /** * @param {"web" | "node" | "async-node" | "webworker"} target target * @returns {import("../../../../").Configuration} config */ function config(target) { return { name: target, target, mode: "development", devtool: false, // Keep the real `__filename` so the test can read its own bundle on every target. node: { __dirname: false, __filename: false }, // Force the operator on regardless of the target's browserslist default. output: { environment: { logicalAssignment: true } }, optimization: { chunkIds: "named" }, plugins: [new webpack.HotModuleReplacementPlugin()] }; } module.exports = [ config("web"), config("node"), config("async-node"), config("webworker") ];