Skip to content

Commit

Permalink
Export @babel/parser in @babel/core
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo committed Nov 7, 2018
1 parent b706e34 commit 60667e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-core/src/index.js
Expand Up @@ -10,6 +10,7 @@ export { version } from "../package.json";
export { getEnv } from "./config/helpers/environment";

export * as types from "@babel/types";
export * as parser from "@babel/parser";
export { default as traverse } from "@babel/traverse";
export { default as template } from "@babel/template";

Expand Down
8 changes: 8 additions & 0 deletions packages/babel-core/test/api.js
Expand Up @@ -154,6 +154,14 @@ describe("api", function() {
);
});

it("exposes the parser", function() {
expect(babel.parser).toBeDefined();
});

it("exposes types", function() {
expect(babel.types).toBeDefined();
});

it("transformFile", function(done) {
const options = {
babelrc: false,
Expand Down

0 comments on commit 60667e2

Please sign in to comment.