Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
upgrade to babel 7
Browse files Browse the repository at this point in the history
  • Loading branch information
minedeljkovic authored and gcanti committed Jun 6, 2019
1 parent 2c25945 commit e0a78e0
Show file tree
Hide file tree
Showing 40 changed files with 3,127 additions and 2,179 deletions.
6 changes: 3 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"presets": ["es2015"],
"presets": ["@babel/preset-env"],
"plugins": [
"syntax-flow",
"transform-flow-strip-types"
"@babel/plugin-syntax-flow",
"@babel/plugin-transform-flow-strip-types"
]
}
6 changes: 3 additions & 3 deletions benchmark/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Benchmark = require('benchmark')
var babel = require('babel-core')
var babel = require('@babel/core')
var plugin = require('../src/index').default
var path = require('path')
var fs = require('fs')
Expand All @@ -22,11 +22,11 @@ function Test() {
source, {
babelrc: false,
plugins: [
'syntax-flow',
'@babel/plugin-syntax-flow',
[plugin, {
skipAsserts: false
}],
'transform-flow-strip-types'
'@babel/plugin-transform-flow-strip-types'
]
}
).code
Expand Down
Loading

0 comments on commit e0a78e0

Please sign in to comment.