Skip to content
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

Invalid exports for Svelte #13

Open
ColinTimBarndt opened this issue Aug 5, 2022 · 0 comments
Open

Invalid exports for Svelte #13

ColinTimBarndt opened this issue Aug 5, 2022 · 0 comments

Comments

@ColinTimBarndt
Copy link

When using the plugin in the Svelte (Rollup) config, this is what the generated code file will look like with default settings:

export default undefined

And when using raw:

export default "export default \"/src/icons/rj45.svg\""

Without this plugin, the emitted module is export default "/path/to/image", which is the fallback for any file.
My suspicion is that the plugin resolves the SVG image in the same way and therefore receives no valid SVG as input. It would also be great if the plugin would print a warning in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant