We're updating the issue view to help you get more done. 

simplify :none script inclusion if :main supplied

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.:

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

Instead of

1 2 3 <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>

Environment

None

Status

Assignee

andrewhr

Reporter

David Nolen

Labels

None

Approval

None

Patch

Code

Priority

Major