Skip to content

Commit

Permalink
fix: ie10 and below props access in constructors (stripe-archive#140) (
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiest authored and cweiss-stripe committed Jan 17, 2018
1 parent 7a61524 commit 8c34eab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"presets": ["react", "env"],
"plugins": ["transform-class-properties", "transform-object-rest-spread"]
"plugins": [
"transform-class-properties",
"transform-object-rest-spread",
[ "transform-es2015-classes", { "loose": true } ]
]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"babel-jest": "^21.0.2",
"babel-loader": "^7.1.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-es2015-classes": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ babel-plugin-transform-es2015-block-scoping@^6.23.0:
babel-types "^6.26.0"
lodash "^4.17.4"

babel-plugin-transform-es2015-classes@^6.23.0:
babel-plugin-transform-es2015-classes@^6.23.0, babel-plugin-transform-es2015-classes@^6.24.1:
version "6.24.1"
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
dependencies:
Expand Down

0 comments on commit 8c34eab

Please sign in to comment.