Uploaded image for project: 'ClojureScript'
  1. CLJS-851

simplify :none script inclusion if :main supplied

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None
    • Patch:
      Code

      Description

      If :main namespace supplied - under :none optimization settings :output-to file should goog.require it. This would also allow script inclusion to be unified regardless of the level of optimization supplied, i.e.:

      <script type="text/javascript" src="foo.js"></script>
      

      Instead of

      <script type="text/javascript" src="out/goog/base.js"></script>
      <script type="text/javascript" src="foo.js"></script>
      <script type="text/javascript">goog.require("foo.core");</script>
      

        Attachments

          Activity

            People

            • Assignee:
              andrewhr andrewhr
              Reporter:
              dnolen David Nolen
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: