bolinfest / plovr

plovr: a Closure build tool
78 stars 49 forks source link

Put goog.requires in HTML, so that symbols are loaded in the right order #13

Closed nicks closed 10 years ago

nicks commented 10 years ago

added the escapeJsString

re: goog.provide/require. The problem is that when plovr generates the test file, it uses script inclusion, which means the deps don't load until after the first script is done loading. So,

goog.require('goog.Component');
var Component = goog.Component;

would not work as expected. The options I considered were:

I went with this approach because there's less magic and it's easier to see what's going on.

re: "approve with comments": i think there is a way to make some changes then accept, but it involves some github-fu