/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/script-src-classic/webpack.config.js
26 строк
529 B
Alexander Akait
feat: add support for `<script>` and `<link rel=modulepreload>` in HTML modules (#20949)
14 май 2026, 15:01
Не верифицирован
14 май 2026, 15:01
3c1be18
Код
Авторство
О чём код?
"use strict"; // No `experiments.outputModule` and no `output.module` — emitted chunks are // classic IIFE-wrapped scripts. The parser must NOT auto-upgrade // `<script src>` to `<script type="module" src>` in this mode. /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", node: { __dirname: false, __filename: false }, externalsPresets: { node: true }, output: { chunkFilename: "[name].chunk.js" }, optimization: { chunkIds: "named" }, experiments: { html: true } };