ClojureScript

Also gather dependencies from foreign-lib modules

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: 1.9.908
  • Fix Version/s: Next
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test

Description

Currently dependencies of foreign libs passed as modules are not gathered and processed in Closure.

It would be nice to make npm-deps and foreign libs passed as modules just work.

(b/build "src"
  {:output-dir "out"
   :main 'foo.core
   :output-to "out/main.js"
   :asset-path "/out"
   :foreign-libs [{:file "src/foreign/lib.js"
                   :module-type :es6
                   :provides ["js.lib"]}]
   :npm-deps {:react "15.6.1"
              :react-dom "15.6.1"}
   :install-deps true
   :optimizations :none
   :compiler-stats true
   :verbose true})
import React from 'react';

export var main = function() {
    console.log("This is my JSX component: " + React.DOM.div(null, 'hi'));
};

Activity

Hide
António Nuno Monteiro added a comment -

Patch attached with fix.

Show
António Nuno Monteiro added a comment - Patch attached with fix.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: