Comments (2)
To expand a little: If you wan't to use your SVG's as dynamic imports, convert them manually (statically) to Svelte components on beforehand.
There are probably tools out there for scripting stuff like this.
from sveltekit-svg.
This is a build-time plugin and dynamic imports are runtime, so I can't see how this would ever work.
from sveltekit-svg.
Related Issues (20)
- Use events on components HOT 3
- Modify the SVG doesn't hot reload HOT 2
- SSR true HOT 7
- Support alternative datauri encodings HOT 2
- Error: <Btn_Next> is not a valid SSR component. HOT 18
- Svelte 4 support HOT 1
- Using SVG as component is giving me an error? HOT 4
- Render the contents of the `<svg>` tag using `{@html}` in the component mode HOT 6
- Add a hook to allow plugin users to modify the resulting component HOT 3
- `Error: Cannot find module 'svgo'` HOT 4
- Simplify library usage for common usage HOT 7
- Sourcemap issues HOT 6
- Get SVGSVGElement from generated component HOT 2
- Not a valid SSR component HOT 2
- PSA: css selectors that target an imported `.svg` are considered `unused` and are pruned HOT 1
- `?url` + SVGO? HOT 11
- Svelte 5 Support HOT 8
- Error: Cannot find module '@rollup/pluginutils' HOT 6
- Fails to compile in Svelte 5: "Invalid compiler option: css: "none" is no longer a valid option" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sveltekit-svg.