/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/module/public-path/webpack.config.js
212 строк
4 KB
Alexander Akait
chore: resolve "use strict" TODO (#19705)
16 июл 2025, 17:29
Не верифицирован
16 июл 2025, 17:29
d8690f3
Код
Авторство
О чём код?
"use strict"; const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */ module.exports = (env, { testPath }) => [ { devtool: false, target: "web", output: { module: true, publicPath: "auto" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "auto", chunkFilename: "async/[id].bundle1.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "auto", filename: "initial/bundle2.mjs", chunkFilename: "async/[id].bundle2.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { path: path.resolve(testPath, "./bundle3"), module: true, publicPath: "auto", filename: "initial/bundle3.mjs", chunkFilename: "async/[id].bundle3.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "", chunkFilename: "async/[id].bundle5.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "", filename: "initial/bundle6.mjs", chunkFilename: "async/[id].bundle6.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { path: path.resolve(testPath, "./bundle7"), module: true, publicPath: "", filename: "initial/bundle7.mjs", chunkFilename: "async/[id].bundle7.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "https://example.com/public/path/" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "https://example.com/public/path/", chunkFilename: "async/[id].bundle9.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { module: true, publicPath: "https://example.com/public/path/", filename: "initial/bundle10.mjs", chunkFilename: "async/[id].bundle10.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { path: path.resolve(testPath, "./bundle11"), module: true, publicPath: "https://example.com/public/path/", filename: "initial/bundle11.mjs", chunkFilename: "async/[id].bundle11.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "node", output: { path: path.resolve(testPath, "./bundle12"), module: true, publicPath: "auto", filename: "initial/bundle12.mjs", chunkFilename: "async/[id].bundle12.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: ["node", "web"], output: { path: path.resolve(testPath, "./bundle13"), module: true, publicPath: "auto", filename: "initial/bundle13.mjs", chunkFilename: "async/[id].bundle13.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { path: path.resolve(testPath, "./bundle14"), module: true, filename: "js/bundle14.mjs", chunkFilename: "js/[id].bundle14.mjs" }, experiments: { outputModule: true } }, { devtool: false, target: "web", output: { publicPath: "https://example.com/public/path/", path: path.resolve(testPath, "./bundle15"), module: true, filename: "js/bundle15.mjs", chunkFilename: "js/[id].bundle15.mjs" }, experiments: { outputModule: true } } ];