feat: support react-native#2812
Conversation
|
✅ Deploy Preview for module-federation-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/runtime/src/module/index.ts
Outdated
| remoteInfo: this.remoteInfo, | ||
| remoteEntryExports: this.remoteEntryExports, | ||
| createScriptHook: (url: string, attrs: any) => { | ||
| createScriptHook: (url, attrs) => { |
There was a problem hiding this comment.
was this because we have a implicit dependency ts lint rule? if not why were the typings dropped?
There was a problem hiding this comment.
typing comes from getRemoteEntry type which was modified now, so these typings became redundant
|
The
|
|
@2heal1 tests fixed 🎉 I've added a more strict check for node env to account for that. |
|
The content is no problem , but i think we should put the For my thought , we can add a loaderHook named like Can you help to implement this ? If not, I will implement it next week and then merge this pr . |
Sure thing! What's the correct place for these runtime plugins to exist in the repo? Do we keep them in SDK? |
Much appreciate ! The plugin can be placed in runtime/plugins and re-export as subpath |
|
Stale pull request message |
|
Bump |
|
Stale pull request message |
|
Stale pull request message |
|
Closing this in favor of #3605 |
Description
loadScriptandcreateScriptmethods for React NativeCreateScriptHooktypingin node env we check for
process.versions.node(source)in RN we check for
global.navigatorwhich is set during initialisation of React Native core (source)right now the whole loading process is handled internally through Re.Pack
Related Issue
#2811
Types of changes
Checklist