Closed gcxfd closed 2 years ago
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.
@mrkishi @Conduitry
I wrote a patch https://github.com/rmw-lib/coffee-label-patch make coffeescript support label
I create pull request there https://github.com/sveltejs/svelte-preprocess/pull/493
it work , i release a preview in @rmw/svelte-preprocess
yarn add -D @rmw/svelte-preprocess @rmw/coffee-label-patch
demo video https://www.loom.com/share/a45ffe7eeecb4115ad335b7db21f9b04?from_recorder=1&focus_title=1
the code for demo video https://github.com/rmw-lib/svelte-pug-stylus-coffee
$: y = x * 2
not work