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
With Webpack, I am able to do this using externals, but I am not sure how to do it with Snowpack. Adding @sentry/browser in packageOptions.external produces this:
Uncaught TypeError: Failed to resolve module specifier "@sentry/browser". Relative references must start with either "/", "./", or "../".
It would be great if I could specify external dependencies the way it is done in Webpack. For example:
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.
-
I am trying to have some of my dependencies loaded from CDN, while most of my code will be bundled (
packageOptions.source: local
).For example,
@sentry/browser
will be loaded from CDN, but in my code I would like to reference it using imports:With Webpack, I am able to do this using externals, but I am not sure how to do it with Snowpack. Adding
@sentry/browser
inpackageOptions.external
produces this:It would be great if I could specify external dependencies the way it is done in Webpack. For example:
Please let me know if there is a way to achieve what I am trying to do.
Beta Was this translation helpful? Give feedback.
All reactions