-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support for compile-to-JS languages? #98
Comments
No reason this wouldn't work – as long as Svelte takes delivery of ES<=2017 that adheres to the component spec, it'll take it from there. So you would just need to preprocess your TypeScript accordingly. Eventually it'd be nice to allow pluggable transpilers a la vue-loader, but it's probably a ways down the priority list tbh. |
#65 sounds like Svelte won't load external .js files - like it requires behaviors to be specified inside a |
@spiffytech For now, yes – you'd need to glue the code together before passing it to Svelte, until #65 is implemented. |
Could you support this how handlebars does it - with the type attribute of the script tag? |
Closing this since we have |
Is this essentially dead given the changes in Svelte 3 or is there some programmatic way to hook into the compiler? I've been playing with various approaches to integrating |
@jaccarmac |
CLJS is something of a special case given the Closure integration and the necessity of implementing sugar for things like |
Specifically, this seems to no longer be the case. |
Are you saying that you're using a language that doesn't give you a way to generate JS labels? That seems like a separate issue from this general "support compile-to-JS transforms" issue. You could bring up specific details in the Discord chat if you want to look for some help brainstorming? |
Had not realized |
Inspired by #98 (comment) , I wanted to make it a bit more explicit that the `$:` label was actual JS syntax.
Inspired by sveltejs/svelte#98 (comment) , I wanted to make it a bit more explicit that the `$:` label was actual JS syntax.
Are there any updates on this topic? I'm curious about integrating Clojurescript as well. |
Inspired by sveltejs/svelte#98 (comment) , I wanted to make it a bit more explicit that the `$:` label was actual JS syntax.
Can Svelte be used with compile-to-JS languages, like TypeScript and ClojureScript? How can I tell Svelte to look for behaviors in my generated code?
The text was updated successfully, but these errors were encountered: