-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: force bundle is-svg
#740
Conversation
Signed-off-by: John Molakvoæ <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #740 +/- ##
=======================================
Coverage 77.15% 77.15%
=======================================
Files 17 17
Lines 394 394
Branches 107 107
=======================================
Hits 304 304
Misses 77 77
Partials 13 13 |
But we have some pure ESM packages, if you add them to the jest transform it should work? (see nextcloud-vue there are a lot of pure ESM dependencies). |
Try it yourself, I tried for hours, 😢 |
Because bundling dependencies here for just jest is a anti pattern I think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer not bundling and instead dynamically importing it, but 🤷
Tried it too, can't dynamically import in a class (async issues) or at the root of the file. |
Then the only other solution I can think of at the moment would be to only bundle for CJS, but not sure if this is possible. So lets stick with this for the moment. (wanted to submit, but: Maybe it works if we also drop CJS support. This way the using libraries and apps have to handle it as ESM so there will be no |
Increase the size a bit, but it's the only solution I've found 😞