Open Cybbin opened 3 days ago
when you share it, its probbably resolving to the "main" field in the plugin.
share vue/nestedPath/index.mjs or whatever the esm path to vue is.
Vue.default seems to make the app render.
vue: { import: "vue/dist/vue.js", }
put that for your shared
vue: { import: "vue/dist/vue.js", }
put that for your shared
It works, thanks!
Describe the bug
I shared
vue
deps in ModuleFederationPluginWhen i use
vue
in .mjs file,vue
cannot be used correctly. It seems to be imported as a module, not a function.Reproduction
https://github.com/Cybbin/pj-module-federation/tree/main/app-3
Used Package Manager
npm
System Info
Validations