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
I'm using the legacy plugin to build some embedded svelte apps and SystemJS is causing me some trouble.
When there are two embedded apps on the same page, the dependencies of one of the apps are cleared and the app can't be loaded. I can potentially solve this by using externalSystemJS but I encountered cases where there's another embedded app that I can't control that uses SystemJS so errors will arise.
I thought about renaming SystemJS using the transform-globals babel plugin but the legacy plugin doesn't seem to detect my babel.config.js
Here's my babel config for now (I'm testing a few possibilities)
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
I'm using the legacy plugin to build some embedded svelte apps and SystemJS is causing me some trouble.
When there are two embedded apps on the same page, the dependencies of one of the apps are cleared and the app can't be loaded. I can potentially solve this by using
externalSystemJS
but I encountered cases where there's another embedded app that I can't control that uses SystemJS so errors will arise.I thought about renaming SystemJS using the transform-globals babel plugin but the legacy plugin doesn't seem to detect my babel.config.js
Here's my babel config for now (I'm testing a few possibilities)
Is there a way to do this?
Thank you
Edit: I just came across this issue
It looks like you can't customize the babel config that is passed to the plugin
Beta Was this translation helpful? Give feedback.
All reactions