This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

## 2018-08-11

## Channels

- # announcements (8)
- # beginners (17)
- # boot (1)
- # cider (20)
- # cljdoc (7)
- # cljs-dev (14)
- # clojure (62)
- # clojure-dev (16)
- # clojure-hamburg (1)
- # clojure-russia (2)
- # clojure-spec (22)
- # clojure-uk (15)
- # clojurebridge (1)
- # clojurescript (23)
- # core-async (4)
- # core-logic (17)
- # cursive (2)
- # datomic (4)
- # duct (1)
- # figwheel-main (40)
- # fulcro (15)
- # leiningen (1)
- # off-topic (27)
- # re-frame (3)
- # shadow-cljs (9)
- # specter (3)
- # sql (59)

If in JavaScript see `import simplify from 'simplify-js';`

then after `npm install simplify-js`

working fine I ought to be able to require: `["simplify-js" :refer (simplify)]`

and look at `simplify`

and it should not be undefined. Is that correct?

@cjmurphy see the translation table: https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages

`import simplify ..`

is a default export. so it would be `["simplify-js" :default simplify]`

.

`["simplify-js" :refer (simplify)]`

is equiv to `import { simplify } from 'simplify-js';`

. note the extra `{}`

. ES6 imports are weird.

Looking for some feedback here: https://clojureverse.org/t/poll-reworking-the-launcher/2633