mirror of https://github.com/webpack/webpack.git
24 lines
408 B
JavaScript
24 lines
408 B
JavaScript
"use strict";
|
|
|
|
const { ModuleFederationPlugin } = require("../../../").container;
|
|
|
|
/** @type {import("../../../").Configuration} */
|
|
module.exports = {
|
|
mode: "production",
|
|
entry: "./index.js",
|
|
output: {
|
|
filename: "[name]_bundle.js"
|
|
},
|
|
plugins: [
|
|
new ModuleFederationPlugin({
|
|
name: "container",
|
|
exposes: {
|
|
"./entry": {
|
|
import: "./entry",
|
|
name: "custom-entry"
|
|
}
|
|
}
|
|
})
|
|
]
|
|
};
|