Skip to content

Commit 8a7a4ff

Browse files
author
Geoff Davis
committed
add babel strip flow type plugin, clean up config files
1 parent 08a1e27 commit 8a7a4ff

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.babelrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
"plugins": ["transform-flow-strip-types"]
3+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"babel-core": "^6.23.1",
1818
"babel-eslint": "^7.1.1",
1919
"babel-loader": "^6.3.2",
20+
"babel-plugin-transform-flow-strip-types": "^6.22.0",
2021
"babel-preset-es2015": "^6.22.0",
2122
"eslint": "^3.16.1",
2223
"eslint-plugin-flowtype": "^2.30.0",

webpack.config.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
'use strict';
2-
const FlowBabelWebpackPlugin = require('flow-babel-webpack-plugin');
3-
const FlowWebpackPlugin = require('flow-webpack-plugin');
42
module.exports = {
53
entry: './source/index.js',
64
output: {

yarn.lock

+8-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ babel-plugin-check-es2015-constants@^6.22.0:
314314
dependencies:
315315
babel-runtime "^6.22.0"
316316

317-
babel-plugin-syntax-flow@^6.8.0:
317+
babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.8.0:
318318
version "6.18.0"
319319
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
320320

@@ -493,6 +493,13 @@ babel-plugin-transform-flow-comments@^6.17.0:
493493
babel-plugin-syntax-flow "^6.8.0"
494494
babel-runtime "^6.22.0"
495495

496+
babel-plugin-transform-flow-strip-types:
497+
version "6.22.0"
498+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
499+
dependencies:
500+
babel-plugin-syntax-flow "^6.18.0"
501+
babel-runtime "^6.22.0"
502+
496503
babel-plugin-transform-regenerator@^6.22.0:
497504
version "6.22.0"
498505
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.22.0.tgz#65740593a319c44522157538d690b84094617ea6"

0 commit comments

Comments
 (0)