/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/node/output-module-external/webpack.config.js
26 строк
450 B
hai-x
fix: preserve node-commonjs externals for module output (#20431)
09 фев 2026, 16:11
Не верифицирован
09 фев 2026, 16:11
124ba79
Код
Авторство
О чём код?
"use strict"; const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", entry: { require: "./require.js", import: "./import.js" }, experiments: { outputModule: true }, output: { module: true, filename: "[name].mjs" }, plugins: [ new DefinePlugin({ NODE_VERSION: JSON.stringify( process.versions.node.split(".").map(Number)[0] ) }) ] };