This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-20
Channels
- # beginners (17)
- # boot (19)
- # chestnut (1)
- # cider (25)
- # clara (1)
- # cljs-dev (15)
- # cljsrn (10)
- # clojars (9)
- # clojure (182)
- # clojure-brasil (27)
- # clojure-dusseldorf (2)
- # clojure-gamedev (5)
- # clojure-germany (1)
- # clojure-greece (2)
- # clojure-italy (18)
- # clojure-poland (5)
- # clojure-romania (3)
- # clojure-russia (29)
- # clojure-serbia (6)
- # clojure-spec (9)
- # clojure-uk (77)
- # clojure-ukraine (1)
- # clojurescript (61)
- # cursive (5)
- # datomic (20)
- # defnpodcast (1)
- # emacs (10)
- # fulcro (2)
- # graphql (2)
- # hoplon (11)
- # lumo (4)
- # off-topic (50)
- # om (3)
- # onyx (26)
- # other-languages (39)
- # parinfer (2)
- # pedestal (5)
- # re-frame (32)
- # reagent (48)
- # rum (7)
- # shadow-cljs (10)
- # spacemacs (29)
- # sql (10)
- # unrepl (58)
- # vim (3)
Hi all, checked in a number of other places first, wondering if this is a bug: seeing a lot of skipped compilation phases when compiling a super simple es6 js file using :foreign-libs
with :es6
as :module-type
. This is with 1.9.946 cljs.jar file. Here's a gist: https://gist.github.com/zalky/1c822ee6ad6499dc007718f9c72cf05c
This produces a lot of warnings like:
WARNING: Skipping pass optimizeToEs6
factory features: [block function, trailing comma, reserved words as properties .... etc...
Bug?@zalky sounds more like you have language-out :es6
than a problem with modules
@anmonteiro: hmm, I have :language-in
set, but not :language-out
:
(cljs.build.api/build "src"
{:main 'integrated.core
:output-to "out/main.js"
:language-in :es6
:foreign-libs [{:file "src"
:module-type :es6}]
:optimizations :advanced
:verbose true})
weird
you also don’t have any :provides
but I don’t think that would matter
then this is not a foreign lib
it doesn’t need to go through closure
:libs ["src"]
that’s all you need if you have a Closure compatible lib
i see, i was originally using :libs
, but then tried to get the es6 features to work via the clojurescript documentation here: https://clojurescript.org/reference/javascript-module-support