Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 26, 2023
1 parent 13fc489 commit 96715aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// Register sections and max allowed fragments, 0 for unlimited.
fragments.registerSections({
importsSection:0,
configSection: 0,
moduleFederationSection: 0,
pluginsSection: 0,
});
Expand Down Expand Up @@ -48,14 +49,7 @@ module.exports = ({ serve }) => {
chunkIds: 'named',
runtimeChunk: false,
},
<%_ if (applicationTypeGateway && clientFrameworkVue) { _%>
resolve: {
fallback: {
// Workaround https://github.com/module-federation/universe/issues/1575
path: false,
},
},
<%_ } _%>
<&- fragments.configSection() &>
plugins: [
new ModuleFederationPlugin({
<%_ if (applicationTypeMicroservice) { _%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@
const { DefinePlugin } = require('webpack');
<%_ } _%>
<&_ } -&>

<&_ if (fragment.configSection) { -&>
<%_ if (applicationTypeGateway && clientFrameworkVue) { _%>
resolve: {
fallback: {
// Workaround https://github.com/module-federation/universe/issues/1575
path: false,
},
},
<%_ } _%>
<&_ } -&>

<&_ if (fragment.moduleFederationSection) { -&>
<%_ if (applicationTypeMicroservice) { _%>
exposes: {
Expand All @@ -37,6 +49,7 @@ const { DefinePlugin } = require('webpack');
),
},
<&_ } -&>

<&_ if (fragment.pluginsSection) { -&>
<%_ if (applicationTypeMicroservice) { _%>
new DefinePlugin({
Expand Down

0 comments on commit 96715aa

Please sign in to comment.