-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use splitchunk and module federation at the same time #7361
Comments
To use splitchunk and module federation you can follow the following steps . |
// webpack.config.js in host application module.exports = { |
// webpack.config.js in remote application module.exports = { |
// webpack.config.js in both host and remote applications |
This fix does not work for me. Still complaining about loading the script file |
same issue |
1 similar comment
same issue |
home\src\components\HelloWorld.vue
app\src\App.vue
app\src\main.js
app\src\bootstrap.js
you should correcting these problems first.
It seems there is a conflict between
splitChunks
andwebpack module federation
(I am not an expert). After deletingsplitChunks
config,module federation
workshome\vue.config.js
module.exports = { publicPath: 'http://localhost:8081/', chainWebpack: (config) => { /* module federation plugin import */ + config.optimization.delete('splitChunks') config .plugin('module-federation-plugin') .use(require('webpack').container.ModuleFederationPlugin, [{ ...
Originally posted by @fangbinwei in #6318 (comment)
How to use splitchunk and module federation at the same time
The text was updated successfully, but these errors were encountered: