Many tutorials have the goog/base.js file included in a script tag and then use goog.require('your_script') to start the app running. For example, here is the header of an HTML file from the linked tutorial:
<script type="text/javascript" src="out/goog/base.js"></script>
<script type="text/javascript" src="hello.js"></script>
<script type="text/javascript">goog.require('hello');</script>
I understand that Google Closure Library is used to compile Clojurescript into Javascript. Why is it being required in the HTML page as well? Can't it compile itself (or its necessary components using advanced compilation) into the hello.js in the example above?
What I really want is to only require a single javascript file and not the dozens of files in /goog/. Isn't that what a compiler is for? I just don't understand why it needs to be included in the page.