Skip to content

Commit 0a9afa1

Browse files
committedDec 8, 2015
fix(gulp): add babel runtime options
without `es7.classProperties`, babel won't compile the default controller template
1 parent 38bb6b8 commit 0a9afa1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎app/templates/gulpfile.babel(gulp).js

+3-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ let styles = lazypipe()
120120

121121
let transpile = lazypipe()
122122
.pipe(plugins.sourcemaps.init)<% if(filters.babel) { %>
123-
.pipe(plugins.babel)<% } else { %>
123+
.pipe(plugins.babel, {
124+
optional: ['es7.classProperties']
125+
})<% } else { %>
124126
.pipe(plugins.coffee, {bare: true})<% } %>
125127
.pipe(plugins.sourcemaps.write, '.');<% } %>
126128

0 commit comments

Comments
 (0)
Please sign in to comment.