Replies: 1 comment
-
Reading files on node is typically accomplished using the filesystem APIs available via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried importing the SVG file in typescript but it threw an error as SWC cannot parse SVG.
I am thinking of using the SWC core experimental transpiler library as it presents a create function to ts-node and as it is passed an SVG file I just read it as a string and provide the same. Is there an alternative way as I couldn't find any information regarding this?
Hope someone can help me.
Beta Was this translation helpful? Give feedback.
All reactions