* fix(shouldIgnore): filename normalization should be platform sensitive shouldIgnore normalizes the path of the filename prior to running any "only" regexes or functions. The normalization uses "slash", which has some undesirable special cases for non-ASCII characters and longer paths. Changing the normalization behavior to always replace path separators. There is no real need to add additional tests, because the tests are not run in an environment where path.sep !== '/'. * Minor style fix to use double quotes. * Remove conditional for regex replace to keep consistent behavior. * whitespace [skip ci]
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/