August Skare

Results 6 comments of August Skare

Thanks for looking into this! Seems like a fair work around until the issue is fixed in esbuild.

Any updates on this? I'm encountering the same issue. Is there a short term solution where I can patch Remix to support importing .svg files as urls?

@machour Not sure I understand what to do. `.svg` is already set up using the "file" loader https://github.com/kayac-chang/remix/blob/main/packages/remix-dev/compiler/loaders.ts#L25

I guess that's why my current workaround works: ``` import svgPath from "~/../node_modules/path/to/svg.svg"; ```

It's a bit more complex then that 🙈 I have an internal design system/component library that is importing that svg file. Ended up copying over the component so that I...

Found a better workaround! ✨ Adding the package to the `serverDependenciesToBundle` array (in Remix config) solved the issue for me