From c3f1ccc60792bbc5cf2ff31819aa9c5b58793c45 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Sat, 1 Feb 2025 13:26:18 +0200 Subject: [PATCH] chore: enable Module Federation's dts This should work, but currently 'dts' generation fails for all remotes. Exception thrown inside `dts-plugin`. We should use this a preproduction, until fixed. --- packages/auth/rspack.config.mjs | 1 - packages/auth/webpack.config.mjs | 1 - packages/booking/rspack.config.mjs | 1 - packages/booking/webpack.config.mjs | 1 - packages/dashboard/rspack.config.mjs | 1 - packages/dashboard/webpack.config.mjs | 1 - packages/host/rspack.config.mjs | 1 - packages/host/webpack.config.mjs | 1 - packages/shopping/rspack.config.mjs | 1 - packages/shopping/webpack.config.mjs | 1 - 10 files changed, 10 deletions(-) diff --git a/packages/auth/rspack.config.mjs b/packages/auth/rspack.config.mjs index 28c19756..bd70c14e 100644 --- a/packages/auth/rspack.config.mjs +++ b/packages/auth/rspack.config.mjs @@ -181,7 +181,6 @@ export default env => { */ name: 'auth', filename: 'auth.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/auth/webpack.config.mjs b/packages/auth/webpack.config.mjs index fa0e9c89..76cd48c7 100644 --- a/packages/auth/webpack.config.mjs +++ b/packages/auth/webpack.config.mjs @@ -210,7 +210,6 @@ export default env => { */ name: 'auth', filename: 'auth.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/booking/rspack.config.mjs b/packages/booking/rspack.config.mjs index a2636ccf..99c3a678 100644 --- a/packages/booking/rspack.config.mjs +++ b/packages/booking/rspack.config.mjs @@ -181,7 +181,6 @@ export default env => { */ name: 'booking', filename: 'booking.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/booking/webpack.config.mjs b/packages/booking/webpack.config.mjs index 96e1c18e..64ba56b8 100644 --- a/packages/booking/webpack.config.mjs +++ b/packages/booking/webpack.config.mjs @@ -210,7 +210,6 @@ export default env => { */ name: 'booking', filename: 'booking.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/dashboard/rspack.config.mjs b/packages/dashboard/rspack.config.mjs index 5c4ed030..42546b55 100644 --- a/packages/dashboard/rspack.config.mjs +++ b/packages/dashboard/rspack.config.mjs @@ -187,7 +187,6 @@ export default env => { */ name: 'dashboard', filename: 'dashboard.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/dashboard/webpack.config.mjs b/packages/dashboard/webpack.config.mjs index 793acde8..5fcbff3a 100644 --- a/packages/dashboard/webpack.config.mjs +++ b/packages/dashboard/webpack.config.mjs @@ -216,7 +216,6 @@ export default env => { */ name: 'dashboard', filename: 'dashboard.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/host/rspack.config.mjs b/packages/host/rspack.config.mjs index 919c372f..7c644acf 100644 --- a/packages/host/rspack.config.mjs +++ b/packages/host/rspack.config.mjs @@ -178,7 +178,6 @@ export default env => { * The name of the module is used to identify the module in URLs resolver and imports. */ name: 'host', - dts: false, remotes: { booking: `booking@http://localhost:9000/${platform}/mf-manifest.json`, shopping: `shopping@http://localhost:9001/${platform}/mf-manifest.json`, diff --git a/packages/host/webpack.config.mjs b/packages/host/webpack.config.mjs index fd6791f7..14e70a8a 100644 --- a/packages/host/webpack.config.mjs +++ b/packages/host/webpack.config.mjs @@ -208,7 +208,6 @@ export default env => { * The name of the module is used to identify the module in URLs resolver and imports. */ name: 'host', - dts: false, remotes: { booking: `booking@http://localhost:9000/${platform}/mf-manifest.json`, shopping: `shopping@http://localhost:9001/${platform}/mf-manifest.json`, diff --git a/packages/shopping/rspack.config.mjs b/packages/shopping/rspack.config.mjs index 78b13384..005eb0a6 100644 --- a/packages/shopping/rspack.config.mjs +++ b/packages/shopping/rspack.config.mjs @@ -181,7 +181,6 @@ export default env => { */ name: 'shopping', filename: 'shopping.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */ diff --git a/packages/shopping/webpack.config.mjs b/packages/shopping/webpack.config.mjs index 2f7380b3..b24ba4b1 100644 --- a/packages/shopping/webpack.config.mjs +++ b/packages/shopping/webpack.config.mjs @@ -210,7 +210,6 @@ export default env => { */ name: 'shopping', filename: 'shopping.container.js.bundle', - dts: false, /** * This is a list of modules that will be shared between remote containers. */