From 267c04048ea45c8cd7aa8a3e3b5b41bc4a949c5b Mon Sep 17 00:00:00 2001 From: Christian Munoz Date: Sat, 19 Mar 2016 13:57:30 -0400 Subject: [PATCH 1/2] 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 --- .babelrc | 6 +++++- package.json | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index 7bff196..6df2603 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,7 @@ { - "presets": ["es2015", "react", "stage-1"] + "presets": ["es2015", "react", "stage-1"], + "plugins": [ + "transform-es3-member-expression-literals", + "transform-es3-property-literals" + ] } diff --git a/package.json b/package.json index 2d5e354..5e250bf 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,8 @@ "babel-core": "^6.2.1", "babel-eslint": "^4.1.6", "babel-loader": "^6.2.0", + "babel-plugin-transform-es3-member-expression-literals": "^6.5.0", + "babel-plugin-transform-es3-property-literals": "^6.5.0", "babel-polyfill": "^6.3.14", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.5.0", From 833989913abf0f83a3c1c0a3cb6d69745bc483ed Mon Sep 17 00:00:00 2001 From: Christian Munoz Date: Thu, 31 Mar 2016 17:55:10 -0400 Subject: [PATCH 2/2] Update babel-core and babel-polyfill to 6.7.4 https://github.com/babel/babel/releases/tag/v6.7.4 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5e250bf..010c88f 100644 --- a/package.json +++ b/package.json @@ -38,12 +38,12 @@ ], "devDependencies": { "babel-cli": "^6.1.2", - "babel-core": "^6.2.1", + "babel-core": "^6.7.4", "babel-eslint": "^4.1.6", "babel-loader": "^6.2.0", "babel-plugin-transform-es3-member-expression-literals": "^6.5.0", "babel-plugin-transform-es3-property-literals": "^6.5.0", - "babel-polyfill": "^6.3.14", + "babel-polyfill": "^6.7.4", "babel-preset-es2015": "^6.3.13", "babel-preset-react": "^6.5.0", "babel-preset-stage-1": "^6.3.13",