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

Commit 6283f6e

Browse files
authored
Merge pull request #438 from andreawyss/add-babel-plugin-transform-flow-strip-types
feat(FlowType): Remove Flow Types at build-time
2 parents e539de5 + df67aeb commit 6283f6e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"babel-plugin-add-module-exports": "0.2.1",
1010
"babel-plugin-transform-class-properties": "^6.16.0",
1111
"babel-plugin-transform-es2015-modules-umd": "6.18.0",
12+
"babel-plugin-transform-flow-strip-types": "^6.18.0",
1213
"babel-preset-es2015": "6.16.0",
1314
"babel-preset-es2015-rollup": "1.2.0",
1415
"babel-preset-react": "^6.5.0",

rollup.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const presetEs2015 = require('babel-preset-es2015-rollup');
1010

1111
const babel = rollupBabel({
1212
presets: presetEs2015,
13+
plugins: ['transform-flow-strip-types']
1314
});
1415
const plugins = [
1516
babel,

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const standardConfig = {
4141
test: /\.js$/,
4242
exclude: /node_modules/,
4343
query: {
44-
plugins: ['transform-class-properties'],
44+
plugins: ['transform-class-properties', 'transform-flow-strip-types'],
4545
presets: ['babel-preset-es2015', 'babel-preset-react'],
4646
},
4747
}],

0 commit comments

Comments
 (0)