Depend on @babel/parser instead of babylon (#27596)

This commit is contained in:
Melvin Groenhoff
2018-07-30 21:10:18 +02:00
committed by Sheetal Nandi
parent bee839cc6d
commit 37ee427df7
2 changed files with 6 additions and 3 deletions

View File

@@ -10,10 +10,10 @@ import { GeneratorOptions } from "@babel/generator";
import traverse, { Visitor, NodePath } from "@babel/traverse";
import template from "@babel/template";
import * as t from "@babel/types";
import { BabylonOptions } from "babylon";
import { ParseOptions } from "@babel/parser";
export {
BabylonOptions,
ParseOptions,
GeneratorOptions,
t as types,
template,
@@ -217,7 +217,7 @@ export interface TransformOptions {
*
* Default: `{}`
*/
parserOpts?: BabylonOptions | null;
parserOpts?: ParseOptions | null;
/**
* List of plugins to load and use

View File

@@ -22,6 +22,9 @@
"@babel/generator": [
"babel__generator"
],
"@babel/parser": [
"babel__parser"
],
"@babel/template": [
"babel__template"
],