Fork me on GitHub
#clojurescript
<
2021-04-08
>
martinklepsch10:04:19

I tried to use https://stitches.dev in Clojurescript but got the following error:

Closure compilation failed with 1 errors
--- node_modules/@stitches/react/dist/index.cjs:2
ES6 transpilation of 'computed getter/setter in an object literal' is not yet implemented.
Is there a good place to follow/be notified when that gets fixed?

thheller10:04:34

@martinklepsch really just set :compiler-options {:output-feature-set :es6}. the default :es5 really only makes sense if you must support officially dead browsers like IE

thheller10:04:28

otherwise the only place to watch for that stuff is the closure-compiler repo directly I guess

allandaviesza11:04:36

I'm compiling CLJS using fighweel-main, is there any way I can set the --source_map_include_content flag on the Closure compiler?

allandaviesza11:04:29

I spose the clojurescript compiler is where I'd want to set it, seems it has no option to include the original source in a source map

scknkkrer13:04:10

I think this will help.

🙏 3
thheller06:04:36

closure-defines control nothing related to source maps. CLJS currently does not support this I believe. there are a couple open issues in Jira regarding this IIRC. shadow-cljs does support this and does it by default.

allandaviesza06:04:05

thanks, I came to the same conclusion