/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
lib/library/FalseIIFEUmdWarning.js
21 строка
856 B
Alexander Akait
refactor: annotate constructor fields with @type to improve type coverage (#21265)
24 июн 2026, 13:36
Не верифицирован
24 июн 2026, 13:36
e8f9334
Код
Авторство
О чём код?
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Arka Pratim Chaudhuri @arkapratimc */ "use strict"; const WebpackError = require("../errors/WebpackError"); class FalseIIFEUmdWarning extends WebpackError { constructor() { super(); /** @type {string} */ this.name = "FalseIIFEUmdWarning"; /** @type {string} */ this.message = "Configuration:\nSetting 'output.iife' to 'false' is incompatible with 'output.library.type' set to 'umd'. This configuration may cause unexpected behavior, as UMD libraries are expected to use an IIFE (Immediately Invoked Function Expression) to support various module formats. Consider setting 'output.iife' to 'true' or choosing a different 'library.type' to ensure compatibility.\nLearn more: https://webpack.js.org/configuration/output/"; } } module.exports = FalseIIFEUmdWarning;