You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/quickstart/google-clojure.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
1
# Google Closure
2
2
3
-
In order to abstract away JavaScript environment differences ClojureScript relies on the [Google Closure Library](https://developers.google.com/closure/library/) (GCL). GCL supplies an important facility missing from JavaScript: namespaces and a way to declare dependencies between them. In fact ClojureScript namespaces get compiled to Google Closure namespaces.
3
+
ClojueScript uses [Google Closure Library](https://developers.google.com/closure/library/) (GCL) to abstract away JavaScript environment differences. GCL provides support for namespaces and a means to declare dependencies between them. ClojureScript namespaces are compiled to Google Closure namespaces.
4
4
5
-
Loading dependencies correctly across various browser targets is a surprisingly tricky affair. GCL accomplishes this by maintaining a
6
-
dependency graph. When you require a namespace it will write the needed script tags in dependency order for you.
5
+
Loading dependencies correctly across various browser targets is a surprisingly tricky affair.l
6
+
7
+
GCL maintains a dependency graph of the project to manage the loading of dependencies correctly, especially across various browser targets. Require a namespace in ClojureScript and GCL writes the script tags in dependency order.
7
8
8
9
So what went wrong? If you look at `out/main.js` you will see some dependency graph building calls:
0 commit comments