Skip to content

Commit a6c1e10

Browse files
committed
add babel plugin to allow super classes for ie10 and below
1 parent de461e8 commit a6c1e10

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎.babelrc‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
{
22
"presets": ["es2015"],
3-
"plugins": ["babel-plugin-add-module-exports"]
3+
"plugins": [
4+
"babel-plugin-add-module-exports",
5+
["transform-es2015-classes", {
6+
"loose": true
7+
}]
8+
]
49
}

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"devDependencies": {
3232
"babel-core": "^6.7.2",
3333
"babel-plugin-add-module-exports": "^0.1.2",
34+
"babel-plugin-transform-es2015-classes": "^6.7.7",
3435
"babel-preset-es2015": "^6.6.0",
3536
"babel-register": "^6.7.2",
3637
"chai": "^3.5.0",

0 commit comments

Comments
 (0)