vue
vue copied to clipboard
fix Module Federation & Vue 2 SSR: support async initialization #12511
What kind of change does this PR introduce?
- [ ] Bugfix
- [x] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Build-related changes
- [ ] Other, please describe:
Does this PR introduce a breaking change?
- [ ] Yes
- [x] No
The PR fulfills these requirements:
- [x] It's submitted to the
dev
branch for v2.x - [x] When resolving a specific issue, it's referenced in the PR's title
- [x] All tests are passing
- [x] New/updated tests are included
If adding a new feature, the PR's description includes:
- [x] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
Other information:
Extends vue-server-renderer to handle async initializations. Read more in https://github.com/vuejs/vue/issues/12511
https://github.com/module-federation/module-federation-examples/tree/master/genesis
In this example, I implemented Vue SSR module Federation