Package Exports
- babel-core
- babel-core/lib/api/browser
- babel-core/lib/helpers/resolve
- babel-core/lib/tools/build-external-helpers
- babel-core/lib/transformation/file
- babel-core/lib/transformation/file/index.js
- babel-core/lib/transformation/file/logger
- babel-core/lib/transformation/file/options/option-manager
- babel-core/lib/transformation/plugin-pass
- babel-core/lib/util
- babel-core/package
- babel-core/package.json
- babel-core/register
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-core
Babel compiler core.
Install
$ npm install babel-core
Usage
import 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/