Skip to content

Commit

Permalink
Merge pull request ember-cli#983 from rjackson/do-not-wrap-vendor-in-…
Browse files Browse the repository at this point in the history
…eval

Do not wrap vendor in eval when `wrapInEval` is set.
  • Loading branch information
rwjblue committed Jun 11, 2014
2 parents bea80d2 + 639f8e9 commit 675d247
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* [ENHANCEMENT] Provide `--watcher` option for switching between polling and events-based file watching. [#970](https://github.com/stefanpenner/ember-cli/pull/970)
* [BUGFIX] Ensure that tmp/ is cleaned up after running `ember server` or `ember test --server`. [#971](https://github.com/stefanpenner/ember-cli/pull/971)
* [BUGFIX] Fix errors with certain `generate` commands that depend on `inflection`. [f016820](https://github.com/stefanpenner/ember-cli/commit/f016820)
* [BUGFIX] Do not wrap `vendor` assets in eval when `wrapInEval` is set. [#983](https://github.com/stefanpenner/ember-cli/pull/983)
* [ENHANCEMENT] Use `wrapInEval` by default for application assets when running in development. [#983](https://github.com/stefanpenner/ember-cli/pull/983)

### 0.0.33

Expand Down
5 changes: 2 additions & 3 deletions lib/broccoli/ember-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function EmberApp(options) {

this.options = defaults(options, {
es3Safe: true,
wrapInEval: false,
wrapInEval: !isProduction,
minifyCSS: {
enabled: true,
options: {}
Expand Down Expand Up @@ -282,8 +282,7 @@ EmberApp.prototype.javascript = memoize(function() {

var vendor = concatFiles(applicationJs, {
inputFiles: legacyFilesToAppend,
outputFile: '/assets/vendor.js',
wrapInEval: this.options.wrapInEval
outputFile: '/assets/vendor.js'
});

var vendorAndApp = mergeTrees([vendor, es6]);
Expand Down

0 comments on commit 675d247

Please sign in to comment.