clojurescript

ClojureScript, a dialect of Clojure that compiles to JavaScript http://clojurescript.org | Currently at 1.10.879
martinklepsch 2021-04-08T10:13:19.029600Z

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?

thheller 2021-04-08T10:20:34.031100Z

@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

thheller 2021-04-08T10:22:28.031500Z

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

2021-04-08T11:12:36.032600Z

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

2021-04-08T11:56:29.033300Z

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

scknkkrer 2021-04-08T13:53:10.033700Z

I think this will help.

1🙏