/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/source-map/dual-source-map-plugins/webpack.config.js
80 строк
2 KB
hai-x
test: dual sourcemap plugins (#20063)
31 окт 2025, 14:35
Не верифицирован
31 окт 2025, 14:35
826074d
Код
Авторство
О чём код?
"use strict"; const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ module.exports = [ { devtool: false, entry: { bundle0: "./entry1.js" }, output: { filename: "[name].js" }, optimization: { runtimeChunk: true }, plugins: [ new webpack.SourceMapDevToolPlugin({ filename: "[file].map", test: (name) => name === "bundle0.js" }), new webpack.SourceMapDevToolPlugin({ filename: "[file].runtime.map", test: /runtime~bundle0\.js/ }) ] }, { entry: { bundle1: "./entry2.js" }, devtool: false, output: { filename: "[name].js" }, optimization: { runtimeChunk: true }, plugins: [ new webpack.EvalDevToolModulePlugin(), new webpack.SourceMapDevToolPlugin({ filename: "[file].runtime.map", test: ["runtime~bundle1.js"] }) ] }, { entry: { bundle2: "./entry3.js" }, devtool: false, output: { filename: "[name].js", chunkFilename: "[name].js" }, plugins: [ new webpack.SourceMapDevToolPlugin({ filename: "[file].test.map", test: "bundle2.js", columns: false, append: false, namespace: "test", sourceRoot: "test", ignoreList: /entry3\.js/ }), new webpack.SourceMapDevToolPlugin({ filename: "[file].foo.map", test: "chunk-foo.js", columns: true, publicPath: "sourcemaps/", noSources: true, append: () => "\n//# sourceMappingURL=http://localhost:8080/foo/[url]", namespace: "foo", sourceRoot: "foo", debugIds: true }) ] } ];