Skip to content

Commit 519fd36

Browse files
committed
feat(): add optional es7.classProperties transformer to Babel
1 parent c0153d4 commit 519fd36

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app/templates/Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,10 @@ module.exports = function (grunt) {
589589
// Compiles ES6 to JavaScript using Babel
590590
babel: {
591591
options: {
592-
sourceMap: true
592+
sourceMap: true,
593+
optional: [
594+
'es7.classProperties'
595+
]
593596
},<% if(filters.babel) { %>
594597
client: {
595598
files: [{

app/templates/karma.conf.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ module.exports = function(config) {
4343

4444
babelPreprocessor: {
4545
options: {
46-
sourceMap: 'inline'
46+
sourceMap: 'inline',
47+
optional: [
48+
'es7.classProperties'
49+
]
4750
},
4851
filename: function (file) {
4952
return file.originalPath.replace(/\.js$/, '.es5.js');

0 commit comments

Comments
 (0)