Closed ScriptedAlchemy closed 1 week ago
Latest commit: 71b088766670a4b8011ec287a0a9ccd133a75edf
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Name | Link |
---|---|
Latest commit | 71b088766670a4b8011ec287a0a9ccd133a75edf |
Latest deploy log | https://app.netlify.com/sites/module-federation-docs/deploys/667d0a25f7c5030008ac3326 |
Deploy Preview | https://deploy-preview-2603--module-federation-docs.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@quantum-1986 - im working on integrating the chunk load cycle on the server with our runtime apis, so you can now do the following:
You can do this as a hook from the runtime plugins docs.
export default function (): FederationRuntimePlugin {
return {
name: 'node-federation-plugin',
fetch(url, init) {
console.log('HOOK', url);
return fetch(url, init);
},
beforeInit(args) {
//patch webpack chunk loading handlers etc (this is what i do)
I don't know how we get fetch now from this pr , because i see you will use __webpack_require__.federation.instance.loaderHook.lifecycle.fetch.emit
, it will return undefined in the node-host
demo
I don't know how we get fetch now from this pr , because i see you will use
__webpack_require__.federation.instance.loaderHook.lifecycle.fetch.emit
, it will return undefined in thenode-host
demo
yeah im working on a fix
Description
Allow internal fetch method to be overriden
Related Issue
fixes: https://github.com/module-federation/core/issues/2534
Types of changes
Checklist