You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need a piece of advice regarding a good way to override dependencies of Single-Spa running Micro frontend in standalone mode.
The point is that I need to run my Micro frontend in dev standalone mode under Webpack Dev server in an environment where there is no Internet access. It fails as React Single-spa includes a number of libs from a public CDN.
Looking for a solution, I've seen it is possible to configure an overriding in some way, but didn't come to a good recipe. Prefer picking all external deps from node_modules.
Next external deps are in index.html, which generates Single-spa in dev mode:
"imports": {
"single-spa": "https://cdn.jsdelivr.net/npm/single-spa/lib/system/single-spa.dev.js",
"@corp/myapp": "/corp-myapp.js"
}
// all from cdn.jsdelivr.net
import-map-overrides.js
fetch.umd.js
polyfill.min.js
runtime.min.js
system.js
amd.js
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, folks!
Need a piece of advice regarding a good way to override dependencies of Single-Spa running Micro frontend in standalone mode.
The point is that I need to run my Micro frontend in dev standalone mode under Webpack Dev server in an environment where there is no Internet access. It fails as React Single-spa includes a number of libs from a public CDN.
Looking for a solution, I've seen it is possible to configure an overriding in some way, but didn't come to a good recipe. Prefer picking all external deps from node_modules.
Next external deps are in index.html, which generates Single-spa in dev mode:
Beta Was this translation helpful? Give feedback.
All reactions