Skip to content

Commit

Permalink
fix(gulp): add babel runtime options
Browse files Browse the repository at this point in the history
without `es7.classProperties`, babel won't compile the default controller template
  • Loading branch information
david-mohr committed Dec 8, 2015
1 parent 38bb6b8 commit 0a9afa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ let styles = lazypipe()

let transpile = lazypipe()
.pipe(plugins.sourcemaps.init)<% if(filters.babel) { %>
.pipe(plugins.babel)<% } else { %>
.pipe(plugins.babel, {
optional: ['es7.classProperties']
})<% } else { %>
.pipe(plugins.coffee, {bare: true})<% } %>
.pipe(plugins.sourcemaps.write, '.');<% } %>

Expand Down

0 comments on commit 0a9afa1

Please sign in to comment.