mirror of https://github.com/webpack/webpack.git
26 lines
548 B
JavaScript
26 lines
548 B
JavaScript
const { dependencies } = require("./package.json");
|
|
const { ModuleFederationPlugin } = require("../../../../").container;
|
|
|
|
/** @type {import("../../../../").Configuration} */
|
|
module.exports = {
|
|
optimization: {
|
|
chunkIds: "named",
|
|
moduleIds: "named"
|
|
},
|
|
plugins: [
|
|
new ModuleFederationPlugin({
|
|
remoteType: "commonjs-module",
|
|
remotes: {
|
|
service: "../0-eager-shared/container.js"
|
|
},
|
|
shared: {
|
|
"tiny-emitter": {
|
|
eager: true,
|
|
singleton: true,
|
|
requiredVersion: dependencies["tiny-emitter"]
|
|
}
|
|
}
|
|
})
|
|
]
|
|
};
|