Comments (8)
I created nikku/svelte-loader and would be happy to contribute it.
from svelte.
We got svelte-loader released now. This issue can be closed.
from svelte.
This could also serve as a collection of ideas/features that could be leveraged. (IE vue has .vue templates for webpack etc. does a .svelte template defeat the simplicity purpose?, etc)
from svelte.
Thanks for the offer!
There definitely needs to be a svelte-loader plugin, I was going to get round to it eventually but I'd love some help on that front. It's pretty straightforward, the equivalent Rollup plugin is here β the compiler can generate ES modules or AMD, CJS, IIFE, UMD, so it should have everything we need out-of-the-box.
Want me to create a sveltejs/svelte-loader repo and add you as an admin?
Re .vue βΒ I started out with .svelte files instead but I settled on .html as the preferred extension instead (though the Rollup plugin accepts either). It's just easier to get syntax highlighting and linting that way, no fussing around β and it's not just your editor, it's sourcemaps in your devtools as well. We've been doing that for years with Ractive .html components, and it works well.
from svelte.
Want me to create a sveltejs/svelte-loader repo and add you as an admin?
Yes! Although it may not be a immediate implementation at least it's an official medium that I can even enlist a few folks already interested in implementing as well. If you already have a rollup plugin, like you said, it should be pretty straight forward.
It's pretty straightforward, the equivalent Rollup plugin is here β the compiler can generate ES modules or AMD, CJS, IIFE, UMD, so it should have everything we need out-of-the-box.
Awesome, I'll check the plugin! Looking forward to help with this.
from svelte.
Youdaman! Here's the repo, have sent you an invite: https://github.com/sveltejs/svelte-loader
No worries if it doesn't happen straight away, as I say it's on my TODO list anyway β I've just never written a Webpack loader before so it might take me a while π
from svelte.
No sweatsky. Learning opportunity ftw!
from svelte.
Awesome work guys!!! ππΌππΌ
from svelte.
Related Issues (20)
- Svelte 5: HMR breaks with conditional rendering within {#if} blocks HOT 2
- Production build failure of [email protected] -> [email protected] HOT 5
- Svelte 5: next 182 breaks Threlte apps HOT 2
- Svelte 5: Regression since 5.0.0-next.171 HOT 4
- Rerendering bug in table with sticky first column HOT 2
- Svelte 5: Usage of `$effect.active` in `.svelte.js` files gives incorrect error in runtime HOT 2
- Svelte 5: Rune to Store and vice versa HOT 3
- Svelte 5: decide on behaviour of `$state.frozen` HOT 39
- Reactivity regression since 5.0.0-next.177 HOT 6
- Error on mounting to detached element with `css: injected` HOT 2
- Animation is not applied inside nested global css selector HOT 5
- svelte 5 : structural clone failed HOT 2
- `list` is not reactive, but `list.length` is HOT 11
- Svelte 5: Portal'd content and multiple elements in same conditional HOT 3
- `SvelteDate.now()` as a live updating source HOT 6
- `<svelte:component>` wrong error message on component creation HOT 2
- Children duplication of list items rendered within components after v `5.0.0-next.179`
- Svelte 5: cannot change nested objects if not binded HOT 29
- [Svelte 5] `state_unsafe_mutation` when using class getters that perform side effects HOT 3
- Svelte 5: using inlang Paraglide JS message in <svelte:head> meta description tag causes error in SSR
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 svelte.