(ns hello.core
  (:require [hello.foo.bar :as bar]))

(defn ^{:export "greet"} greet [n]
  (str "Hello " n))

(defn ^:export sum [xs]
  (bar/sum xs))

(ns hello.core
  (:require [hello.foo.bar :as bar]))

(defn ^{:export greet} greet [n]
  (str "Hello " n))

(defn ^:export sum [xs]
  (bar/sum xs))

Use a symbol instead of a string to specify export name in example.
Use a symbol instead of a string to specify export name in example.

mstang/clojurescript,mstang/clojurescript,mstang/clojurescript