Skip to content

Commit e0acf83

Browse files
authored
chore: downgrade template code to es5 (#2298)
1 parent 1a9c6e7 commit e0acf83

File tree

19 files changed

+143
-178
lines changed

19 files changed

+143
-178
lines changed

.changeset/khaki-apricots-turn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/enhanced': patch
3+
---
4+
5+
chore: downgrade template code to es5

apps/manifest-demo/3008-webpack-host/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"**/*.spec.js",
2222
"**/*.test.js",
2323
"**/*.spec.jsx",
24-
"**/*.test.jsx"
24+
"**/*.test.jsx",
25+
"dist/**"
2526
],
2627
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
2728
}

apps/manifest-demo/3008-webpack-host/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const { composePlugins, withNx } = require('@nx/webpack');
88
const { withReact } = require('@nx/react');
99

1010
module.exports = composePlugins(withNx(), withReact(), (config, context) => {
11+
config.watchOptions = {
12+
ignored: ['**/node_modules/**', '**/@mf-types/**'],
13+
};
1114
config.plugins.push(
1215
new ModuleFederationPlugin({
1316
name: 'manifest_host',

apps/manifest-demo/3009-webpack-provider/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"**/*.spec.js",
2222
"**/*.test.js",
2323
"**/*.spec.jsx",
24-
"**/*.test.jsx"
24+
"**/*.test.jsx",
25+
"dist/**"
2526
],
2627
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
2728
}

apps/manifest-demo/3009-webpack-provider/webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ module.exports = composePlugins(
1212
withNx(),
1313
withReact(),
1414
async (config, context) => {
15+
config.watchOptions = {
16+
ignored: ['**/node_modules/**', '**/@mf-types/**'],
17+
};
1518
// publicPath must be specific url
1619
config.output.publicPath = 'http://localhost:3009/';
1720
config.plugins.push(

apps/manifest-demo/3010-rspack-provider/rspack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = composePlugins(
1313
withNx(),
1414
withReact(),
1515
async (config, context) => {
16+
config.watchOptions = {
17+
ignored: ['**/node_modules/**', '**/@mf-types/**'],
18+
};
1619
config.context = path.join(
1720
context.context.root,
1821
'apps/manifest-demo/3010-rspack-provider',

apps/manifest-demo/3010-rspack-provider/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"**/*.spec.js",
2222
"**/*.test.js",
2323
"**/*.spec.jsx",
24-
"**/*.test.jsx"
24+
"**/*.test.jsx",
25+
"dist/**"
2526
],
2627
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
2728
}

apps/manifest-demo/3011-rspack-manifest-provider/rspack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = composePlugins(
1313
withNx(),
1414
withReact(),
1515
async (config, context) => {
16+
config.watchOptions = {
17+
ignored: ['**/node_modules/**', '**/@mf-types/**'],
18+
};
1619
config.context = path.join(
1720
context.context.root,
1821
'apps/manifest-demo/3011-rspack-manifest-provider',

apps/manifest-demo/3011-rspack-manifest-provider/tsconfig.app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"**/*.spec.js",
2222
"**/*.test.js",
2323
"**/*.spec.jsx",
24-
"**/*.test.jsx"
24+
"**/*.test.jsx",
25+
"dist/**"
2526
],
2627
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
2728
}

apps/manifest-demo/3012-rspack-js-entry-provider/rspack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ module.exports = composePlugins(
1313
withNx(),
1414
withReact(),
1515
async (config, context) => {
16+
config.watchOptions = {
17+
ignored: ['**/node_modules/**', '**/@mf-types/**'],
18+
};
1619
config.context = path.join(
1720
context.context.root,
1821
'apps/manifest-demo/3012-rspack-js-entry-provider',

0 commit comments

Comments
 (0)