1.0.1 • Published 8 years ago
babel-preset-syntax-from-presets v1.0.1
babel-preset-syntax-from-presets
Provide babel-plugin-syntax as preset. Useful for parse-only babel-core/transform
Usage
npm install babel-preset-syntax-from-presets --save
Then in your useBabylon.js
:
import { transform } from "babel-core";
transform(text, {
babelrc: false,
presets: [
"babel-preset-syntax-from-presets",
],
plugins: [
"some-custom-plugin",
],
});
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request