/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/module/dynamic-import-specifier/webpack.config.js
18 строк
558 B
Alexander Akait
fix: keep a nested bundle's runtime tables out of the chunk's scope (#21568)
31 июл 2026, 18:07
Не верифицирован
31 июл 2026, 18:07
1fdea24
Код
Авторство
О чём код?
"use strict"; /** @type {import("../../../../types").Configuration[]} */ module.exports = ["node", "web"].map((target, index) => ({ name: target, target, // splitChunks gives the chunks a dependency of their own, so the runtime // chunk-loading path is exercised as well as the import sites optimization: { splitChunks: { chunks: "all", minSize: 0 } }, experiments: { outputModule: true }, output: { module: true, chunkFormat: "module", filename: `bundle${index}.mjs`, chunkFilename: `[name].${index}.chunk.mjs`, publicPath: "auto" } }));