Skip to content

Commit

Permalink
chore: add missing preset--env transform to typescript example
Browse files Browse the repository at this point in the history
Fixes #7784
  • Loading branch information
SimenB committed Feb 3, 2019
1 parent a61ac1d commit 006b0b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion examples/typescript/.babelrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Copyright (c) 2014-present, Facebook, Inc. All rights reserved.

module.exports = {
presets: ['@babel/preset-typescript', '@babel/preset-react'],
presets: [
'@babel/preset-env',
'@babel/preset-typescript',
'@babel/preset-react',
],
};
3 changes: 2 additions & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
},
"devDependencies": {
"@babel/core": "*",
"@babel/preset-typescript": "*",
"@babel/preset-env": "*",
"@babel/preset-react": "*",
"@babel/preset-typescript": "*",
"@types/jest": "^23.1.1",
"babel-jest": "*",
"jest": "*"
Expand Down

0 comments on commit 006b0b9

Please sign in to comment.