Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
feat(index): Added plugin to strip flow types (#41)
Browse files Browse the repository at this point in the history
In order for the style guide to support flow types going forward we'll need to strip the types
during compliation.
  • Loading branch information
tamoore authored Feb 4, 2018
1 parent 256ae89 commit 3248fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ const getCommonLoaders = includes => [
plugins: [
require.resolve('babel-plugin-transform-class-properties'),
require.resolve('babel-plugin-transform-object-rest-spread'),
require.resolve('babel-plugin-add-react-displayname')
require.resolve('babel-plugin-add-react-displayname'),
require.resolve('babel-plugin-flow-react-proptypes'),
require.resolve('babel-plugin-transform-flow-strip-types')
]
}
}
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-add-react-displayname": "^0.0.4",
"babel-plugin-flow-react-proptypes": "^17.1.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
Expand Down

0 comments on commit 3248fa1

Please sign in to comment.