forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLJS-3235: Support accessing a property of a library as a namespace i…
…tself add lib&sublib helper to handle foo$bar change ana/node-module-dep? to handle foo$bar case change ana/analyze-deps :js-dependency case to handle foo$bar change handle-js-source so that we match node_modules against foo not foo$bar change emit-global-export to select bar from foo$bar change :node-js require case in load-libs to select bar from foo$bar ana/dep-has-global-exports? needs to handle sublib pattern ana/foreign? needs to handle sublib pattern comp/load-libs foreign lib case needs to handle sublib pattern, same for global export emission add test cases covering node and foreign lib require patterns
- Loading branch information
1 parent
dc6ae8c
commit f5f9b79
Showing
6 changed files
with
126 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(ns cljs-3235.core | ||
(:require [some-foreign :refer [woz]] | ||
[some-foreign$woz :as sf-woz] | ||
[some-foreign$foz.boz :as sf-foz-boz] | ||
[react-select :refer [foo bar]] | ||
[react-select$default :as select] | ||
[react-select$default.baz :as select-baz])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
window.globalLib = { | ||
woz: function() { | ||
|
||
}, | ||
foz: { | ||
boz: function() { | ||
|
||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters