/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/container/circular/webpack.config.js
36 строк
766 B
Alexander Akait
chore: resolve "use strict" TODO (#19705)
16 июл 2025, 17:29
Не верифицирован
16 июл 2025, 17:29
d8690f3
Код
Авторство
О чём код?
"use strict"; const { ModuleFederationPlugin } = require("../../../../").container; /** * @returns {import("../../../../").Configuration} configuration */ function createConfig() { return { output: { filename: "[name].js" }, plugins: [ new ModuleFederationPlugin({ name: "container", library: { type: "commonjs-module" }, exposes: ["./a"], remotes: { container2: "promise Promise.resolve().then(() => require('./container2.js'))" } }), new ModuleFederationPlugin({ name: "container2", library: { type: "commonjs-module" }, exposes: ["./b"], remotes: { container: "promise Promise.resolve().then(() => require('./container.js'))" } }) ] }; } module.exports = createConfig();