Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: 0.0-3308
    • Fix versions: None
    • Labels:
      None

      Description

      Today, module processing and the lib dependency index setup occurs only when cljs.closure/build is invoked. This ticket asks for the same setup to occur if either :libs or :foreign-libs options are passed when a REPL is launched (without an explicit build step occurring first, as is done in the Quick Start examples involving cljs.repl/repl).

      An example:

      (cljs.repl/repl (cljs.repl.node/repl-env)
        :foreign-libs [{:file "libs/greeting.js"
                        :provides ["greeting"]
                        :module-type :commonjs}
                       {:file "libs/german.js"
                        :provides ["german"]
                        :module-type :commonjs}])
      

      The above would be sufficient to cause, for example, CommonJS module processing to occur, and the results to be available within the REPL.

      Additionally, the implementation should defer processing to after REPL -setup has been called, in case the REPL establishes an :output-dir for :merge-opts during -setup, thereby ensuring that any module processing output goes to the correct :output-dir.

        Attachments

          Activity

            People

            • Assignee:
              dnolen David Nolen
              Reporter:
              mfikes Mike Fikes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: