/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/inline-script-classic/webpack.config.js
28 строк
687 B
Alexander Akait
feat: support inline `<script>` tags in HTML modules (#20967)
18 май 2026, 21:00
Не верифицирован
18 май 2026, 21:00
526d638
Код
Авторство
О чём код?
"use strict"; // No `experiments.outputModule` and no `output.module` — emitted chunks are // classic IIFE-wrapped scripts. In this mode the parser must NOT auto- // upgrade classic inline `<script>` to `<script type="module" src>`, AND // it must DROP `type="module"` from inline `<script type="module">` so // the browser doesn't load the classic chunk under module semantics. /** @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 } };