Created
September 3, 2018 08:52
-
-
Save olieidel/1a4ea3b38ca117417ca72bcac582b481 to your computer and use it in GitHub Desktop.
ClojureScript webpack dependencies
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
(def foreign-libs | |
[{:file "src/js/foreign-libs.js" | |
:provides ["cljsjs.react" | |
"cljsjs.react.dom" | |
"cljsjs.three" | |
"intercom.io" | |
"material-ui"] | |
;; see https://clojurescript.org/news/2017-07-30-global-exports | |
:global-exports '{cljsjs.react React | |
cljsjs.react.dom ReactDOM | |
cljsjs.three THREE | |
material-ui MUI | |
intercom.io Intercom}}]) | |
(defproject foo "0.1.0" | |
;; ... | |
:cljsbuild {:builds | |
[{:id "dev" | |
;; ... | |
:foreign-libs ~foreign-libs | |
:externs ~externs}] | |
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
(ns foo.some-file | |
(:require [cljsjs.three :refer [DataTexture Mesh])) | |
;; ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment