Merge pull request #51 from jlongster/update-babylon

Update options to babylon
master
James Long 2017-01-10 17:31:01 -05:00 committed by GitHub
commit 6d39725d47
2 changed files with 10 additions and 13 deletions

View File

@ -9,20 +9,17 @@ var babylonOptions = {
allowImportExportEverywhere: false,
allowReturnOutsideFunction: false,
plugins: [
'asyncFunctions',
'asyncGenerators',
'classConstructorCall',
'classProperties',
'decorators',
'doExpressions',
'exponentiationOperator',
'exportExtensions',
'flow',
'functionSent',
'functionBind',
'jsx',
'flow',
'doExpressions',
'objectRestSpread',
'trailingFunctionCommas'
'decorators',
'classProperties',
'exportExtensions',
'asyncGenerators',
'functionBind',
'functionSent',
'dynamicImport'
]
};

View File

@ -7,7 +7,7 @@
"main": "./index.js",
"dependencies": {
"ast-types": "git+https://github.com/jlongster/ast-types.git",
"babylon": "git+https://github.com/jlongster/babylon.git#published",
"babylon": "^6.15.0",
"flow-parser": "^0.37.0",
"minimist": "^1.2.0",
"private": "^0.1.6",