Is your proposal related to a problem?
I have a Microfrontend which fetches components from different APIs. Currently I did this with React.lazy loading and for external sources I had to ignore webpack like so import( /webpackIgnore: true/ '${API.ORIGIN}/plugin'). Now what I need is to pass credentials for those dynamic imports.
Describe the solution you'd like
I would like create-react-app to use-credentials on dynamic imports from external resources on default.
Describe alternatives you've considered
I considered using react-app-rewired or eject create-react-app and edit the webpack config to use credentials on dynamic imports from other sources. Nevertheless I really would prefer create-react-app to support microfrontends and code-splitting across multiple projects.
Is your proposal related to a problem?
I have a Microfrontend which fetches components from different APIs. Currently I did this with React.lazy loading and for external sources I had to ignore webpack like so import( /webpackIgnore: true/ '${API.ORIGIN}/plugin'). Now what I need is to pass credentials for those dynamic imports.
Describe the solution you'd like
I would like create-react-app to use-credentials on dynamic imports from external resources on default.
Describe alternatives you've considered
I considered using react-app-rewired or eject create-react-app and edit the webpack config to use credentials on dynamic imports from other sources. Nevertheless I really would prefer create-react-app to support microfrontends and code-splitting across multiple projects.