/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/no-source-map/webpack.config.js
43 строки
814 B
Alexander Akait
style: set `arrowParens` to `true` (#19706)
16 июл 2025, 19:13
Не верифицирован
16 июл 2025, 19:13
703d9ac
Код
Авторство
О чём код?
"use strict"; /** @typedef {import("../../../../").WebpackPluginFunction} WebpackPluginFunction */ /** @type {WebpackPluginFunction[]} */ const plugins = [ (compiler) => { compiler.hooks.emit.tap("Test", (compilation) => { for (const asset of compilation.getAssets()) { const result = asset.source.sourceAndMap(); try { expect(result.map).toBeNull(); } catch (_err) { const err = /** @type {Error} */ (_err); err.message += `\nfor asset ${asset.name}`; throw err; } } }); } ]; /** @type {import("../../../../").Configuration} */ module.exports = [ { mode: "development", devtool: false, plugins }, { mode: "production", devtool: false, plugins }, { mode: "production", devtool: false, optimization: { minimize: true }, plugins } ];