-
Notifications
You must be signed in to change notification settings - Fork 150
reactive in coffeescript not work #491
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
Comments
Some info after light digging: Coffeescript seems to compile "labels" into object expressions. This seems unlikely to be fixable on this end as there are no compiler options to change that behavior. |
Searching online for "svelte coffeescript", I just found https://github.com/Leftium/svelte-coffeescript-pug/blob/master/src/App.svelte which has a possible syntax for that will compile into the JS that Svelte needs for reactive blocks. It looks like it involves jumping out to JS syntax within CoffeeScript. In short, I would not at all recommend writing Svelte components with CoffeeScript. I'm going to close this issue, as this is functioning as (unfortunately) designed. |
I wrote a patch https://github.com/rmw-lib/coffee-label-patch make coffeescript support label I create pull request there #493 it work , i release a preview in @rmw/svelte-preprocess
demo video the code for demo video https://github.com/rmw-lib/svelte-pug-stylus-coffee |
$: y = x * 2
not workThe text was updated successfully, but these errors were encountered: