-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
33 lines (31 loc) · 1.13 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
module.exports = {
output: {
uniqueName: "ngMfNotification",
publicPath: "auto",
},
optimization: {
runtimeChunk: false,
},
experiments: {
outputModule: true,
},
plugins: [
new ModuleFederationPlugin({
library: { type: "module" },
name: "ngMfNotification",
filename: "remoteEntry.js",
exposes: {
"./OverviewModule": "./src/app/overview/overview.module.ts",
"./AddAlertButtonComponent": "./src/app/single-components/add-alert-button/add-alert-button.component.ts",
},
shared: {
"@angular/core": { singleton: true, strictVersion: false, requiredVersion: "auto" },
"@angular/common": { singleton: true, strictVersion: false, requiredVersion: "auto" },
"@angular/common/http": { singleton: true, strictVersion: false, requiredVersion: "auto" },
"@angular/router": { singleton: true, strictVersion: false, requiredVersion: "auto" },
"@ng-mf/shared": { singleton: true, strictVersion: false, requiredVersion: "auto" },
},
}),
],
};