krisselden / ember-cli-optimize

MIT License
10 stars 3 forks source link

Consider making all interior (to a modules) functions eager? #5

Open stefanpenner opened 7 years ago

stefanpenner commented 7 years ago
define(x, [], function() { // <-- lazy
export default {
  name:  function() { /* ... */ } // <-- make this eager, so when the module is required the contents dont need to be constantly re-parsed.
}
});