@module-federation/vite 1.9.8 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/index.cjs +1241 -1080
- package/lib/index.esm.js +1241 -1080
- package/lib/index.modern.js +1673 -1492
- package/lib/index.umd.js +1241 -1080
- package/lib/plugins/pluginModuleParseEnd.d.ts +3 -1
- package/lib/plugins/pluginVarRemoteEntry.d.ts +3 -0
- package/lib/utils/bundleHelpers.d.ts +2 -0
- package/lib/utils/normalizeModuleFederationOptions.d.ts +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,6 +118,9 @@ export default defineConfig({
|
|
|
118
118
|
// When false (default), the plugin will not process any CSS assets.
|
|
119
119
|
// When true, all CSS assets are bundled into every exposed module.
|
|
120
120
|
bundleAllCSS: false, // or true
|
|
121
|
+
// Timeout for parsing modules in seconds.
|
|
122
|
+
// Defaults to 10 seconds.
|
|
123
|
+
moduleParseTimeout: 10,
|
|
121
124
|
}),
|
|
122
125
|
],
|
|
123
126
|
server: {
|
|
@@ -134,6 +137,7 @@ export default defineConfig({
|
|
|
134
137
|
|
|
135
138
|
The host app configuration specifies its name, the filename of its exposed remote entry remoteEntry.js, and importantly, the configuration of the remote application to load.
|
|
136
139
|
You can specify the place the host initialization file is injected with the **hostInitInjectLocation** option, which is described in the example code above.
|
|
140
|
+
The **moduleParseTimeout** option allows you to configure the maximum time to wait for module parsing during the build process.
|
|
137
141
|
|
|
138
142
|
## Load the Remote App
|
|
139
143
|
|