This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-13
Channels
- # announcements (1)
- # babashka (28)
- # beginners (72)
- # biff (6)
- # calva (15)
- # clerk (14)
- # clj-otel (4)
- # cljdoc (4)
- # clojure (121)
- # clojure-europe (61)
- # clojure-nl (2)
- # clojure-norway (63)
- # clojure-uk (5)
- # datahike (35)
- # datalevin (37)
- # datomic (7)
- # emacs (2)
- # fulcro (6)
- # gratitude (1)
- # honeysql (2)
- # hyperfiddle (38)
- # malli (9)
- # matrix (24)
- # meander (4)
- # off-topic (10)
- # polylith (8)
- # reagent (2)
- # releases (1)
- # shadow-cljs (8)
- # spacemacs (4)
- # specter (1)
- # squint (5)
- # tools-deps (3)
I'm running into an issue using an externs.js file (for a JS library) where I get a lot of errors about needing to be in at least ES-2015 mode to support things like const
and class
. I see a lot of those in example externs files for the Google Closure compiler, but shadow sets this when it ingests them: https://github.com/thheller/shadow-cljs/blob/5f859cd9244977daf10aa38c4419b68ed7fe872f/src/main/shadow/build/closure.clj#L1047 ...is there a reason to set such an old version? It seems like it's rejecting externs files that should be valid (e.g. https://developers.google.com/closure/compiler/docs/externs-and-exports).
and changing that to :ecmascript6
seems to make everything work as expected
I don't actually remember why this is so old. I guess because I assumed externs files only use old syntax
awesome, thanks!
yeah, I don't even remember where this externs file came from originally haha