File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed
Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default function makeAPI(
5555 async : ( ) => false ,
5656 caller,
5757 assertVersion,
58+ tokTypes : undefined ,
5859 } ;
5960}
6061
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ export { version } from "../package.json";
1010export { getEnv } from "./config/helpers/environment" ;
1111
1212export * as types from "@babel/types" ;
13+ export { tokTypes } from "@babel/parser" ;
14+
1315export { default as traverse } from "@babel/traverse" ;
1416export { default as template } from "@babel/template" ;
1517
Original file line number Diff line number Diff line change @@ -154,6 +154,14 @@ describe("api", function() {
154154 ) ;
155155 } ) ;
156156
157+ it ( "exposes types" , function ( ) {
158+ expect ( babel . types ) . toBeDefined ( ) ;
159+ } ) ;
160+
161+ it ( "exposes the parser's token types" , function ( ) {
162+ expect ( babel . tokTypes ) . toBeDefined ( ) ;
163+ } ) ;
164+
157165 it ( "transformFile" , function ( done ) {
158166 const options = {
159167 babelrc : false ,
You can’t perform that action at this time.
0 commit comments