Skip to content

Commit

Permalink
chore(tcr): babel-preset-react-native 自带了 flow-strip-types 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
Manjiz committed Jul 2, 2018
1 parent f5b36ff commit 9fce5bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/taro-components-rn/gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const gulp = require('gulp')
const flowRemoveTypes = require('gulp-flow-remove-types')
// const flowRemoveTypes = require('gulp-flow-remove-types')
const babel = require('gulp-babel')

gulp.task('scripts', function () {
gulp
.src(['src/**/*.js'])
.pipe(flowRemoveTypes({
// pretty: true
}))
// .pipe(flowRemoveTypes({
// pretty: true
// }))
.pipe(babel({
presets: ['react-native']
}))
Expand Down

0 comments on commit 9fce5bb

Please sign in to comment.