|
|
@@ -1,13 +1,11 @@
|
|
|
//const webpack = require('webpack');
|
|
|
const { shareAll, withModuleFederationPlugin } = require('@angular-architects/module-federation/webpack');
|
|
|
|
|
|
-module.exports = withModuleFederationPlugin({
|
|
|
+const withModuleFederationConfig = withModuleFederationPlugin({
|
|
|
name: 'fieldcalc',
|
|
|
-
|
|
|
exposes: {
|
|
|
'./FcCalculatorComponent': './src/app/calculator/calculator-panel.component.ts',
|
|
|
},
|
|
|
-
|
|
|
shared: {
|
|
|
"@angular/core": {
|
|
|
singleton: true,
|
|
|
@@ -49,12 +47,17 @@ module.exports = withModuleFederationPlugin({
|
|
|
'hslayers-ng': {
|
|
|
singleton: true,
|
|
|
strictVersion: true,
|
|
|
- requiredVersion: '^10.0.0',
|
|
|
- version: '10.0.0'
|
|
|
+ requiredVersion: '^11.0.0',
|
|
|
+ version: '11.0.0'
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
+});
|
|
|
+withModuleFederationConfig.resolve.fallback = {
|
|
|
+ "path": false,
|
|
|
+ "fs": false
|
|
|
+};
|
|
|
+module.exports = withModuleFederationConfig;
|
|
|
|
|
|
-})
|
|
|
/*module.exports = {
|
|
|
devtool: false,
|
|
|
plugins: [
|