From 0a9afa1b72700062d3171da8ff5d6a6922e01cb8 Mon Sep 17 00:00:00 2001 From: David Mohr Date: Wed, 9 Dec 2015 10:46:12 +1100 Subject: [PATCH] fix(gulp): add babel runtime options without `es7.classProperties`, babel won't compile the default controller template --- app/templates/gulpfile.babel(gulp).js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/templates/gulpfile.babel(gulp).js b/app/templates/gulpfile.babel(gulp).js index 18f8d1d0e..94ed22b46 100644 --- a/app/templates/gulpfile.babel(gulp).js +++ b/app/templates/gulpfile.babel(gulp).js @@ -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, '.');<% } %>