-
Notifications
You must be signed in to change notification settings - Fork 507
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
[tsdx-config] Rollup Image Plugin #386
Comments
interesting. can you trace this error please? we are probably using an incompatible plugin somewhere higher up. |
@sw-yx what is the best way of tracing it? |
go into rollup's code, add a breakpoint or https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_attaching-to-nodejs |
@sw-yx I think I just dont know what too look for 😄
Im using ndb to get a debugging window and stepping through, the picture is when I got the error, not sure what to look for there? Tried stepping back in the callstack without becoming any smarter.
Got any other good suggestions? If not its just to add this plugin into a demo repo, and import a png to test out 😸 |
It seems like there is a conncetion with this issue: #278 And there is a workaround there |
ok.. does that work for you? |
I have not tried yet :D Got a differnt problem to tackle first :P |
@sw-yx it worked. I did this, so using a different lib than the suggested from his comment.
|
great. |
Current Behavior
I just wanted to add image plugin: https://github.com/rollup/plugins/tree/master/packages/image
Just like explained in the docs for customization: https://github.com/jaredpalmer/tsdx#rollup
The image is quite simple
But this happens:
Expected behavior
That it works and the image becomes base64 imported.
Suggested solution(s)
Not really sure
Additional context
Should be straight forward since we tap into the rollup config.
Your environment
The text was updated successfully, but these errors were encountered: