anchor.diff:  [[javascript-modules]]
   == JavaScript Modules
   
  -First let's see how JavaScript modules can be a part of your build. We'll focus
  -on ES6, but the instructions are the same for CommonJS and AMD.
  +First let's see how JavaScript modules can be a part of your build.
   
   ----
   mkdir -p hello-es6
  
positive.code: touch project.clj
  ----
  
  Edit the `project.clj` file to look like the following:
  
  [source,clojure]
  ----
  (defproject hello-es6 "0.1.0-SNAPSHOT"
    :dependencies [[org.clojure/clojure "1.9.0-alpha14"]
                   [org.clojure/clojurescript "1.9.908"]]
    :jvm-opts ^:replace ["-Xmx1g" "-server"])
  ----
  
  Create a watch script:
  
  ----
  touch watch.clj
  ----
  
  Edit it to look like the following:
  
  [source,clojure]
  ----
  (require '[cljs.build.api :as b])
  
  (b/watch "src"
    {:output-to    "main.js"
     :output-dir   "out"
     :main         'hello-es6.core
     :target       :nodejs
     :foreign-libs [{:file "src"
                     :module-type :es6}] ;; or :commonjs / :amd
     :verbose      true})
  ----
  
  Notice that a `:foreign-libs` entry may now specify a directory for `:file`.
  
negative.code: 
  We'll demonstrate manual hot-loading with the standard Node.js REPL.
  
  Start the REPL:
  
  ----
  clj -m cljs.main -co build.edn -r
  ----
  
  Require the `js.hello` namespace and try it out:
  