Files
babel/packages/babel-core
Richard Macklin 4ea1007645 Remove unneeded tests
Previously these were testing the logic that is now encapsulated in
getPossiblePresetNames and tested in a unit test
2016-10-16 11:07:16 -07:00
..
2016-10-16 11:07:16 -07:00
2016-10-05 09:50:11 -04:00

babel-core

Babel compiler core.

Install

$ npm install babel-core

Usage

import * as babel from 'babel-core';

const code = `class Example {}`;
const result = babel.transform(code, { /* options */ });

result.code; // Generated code
result.map; // Sourcemap
result.ast; // AST

For more in depth documentation see: http://babeljs.io/docs/usage/api/