Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 267c040

Browse files
committed
Use Babel ES3 transform plugins.
Fixes issues with legacy browsers (IE8) due to usage of unquoted reserved keywords. The following packages were installed: - babel-plugin-transform-es3-member-expression-literals - babel-plugin-transform-es3-property-literals
1 parent 04036bd commit 267c040

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.babelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
{
2-
"presets": ["es2015", "react", "stage-1"]
2+
"presets": ["es2015", "react", "stage-1"],
3+
"plugins": [
4+
"transform-es3-member-expression-literals",
5+
"transform-es3-property-literals"
6+
]
37
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
"babel-core": "^6.2.1",
4242
"babel-eslint": "^4.1.6",
4343
"babel-loader": "^6.2.0",
44+
"babel-plugin-transform-es3-member-expression-literals": "^6.5.0",
45+
"babel-plugin-transform-es3-property-literals": "^6.5.0",
4446
"babel-polyfill": "^6.3.14",
4547
"babel-preset-es2015": "^6.3.13",
4648
"babel-preset-react": "^6.5.0",

0 commit comments

Comments
 (0)