This repository was archived by the owner on Jan 19, 2018. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork15
babel/gobble-babel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Compile ES6 files with gobble and babel. Creates sourcemaps automatically.
First, you need to have gobble installed - see thegobble readme for details. Then,
npm i -D gobble-babel babel-preset-es2015
gobblefile.js
vargobble=require('gobble');module.exports=gobble('src').transform('babel',options);
Theoptions
argument, if specified, is passed to babel - consult thedocumentation. Sourcemaps are created by default (all the relevant information is filled in by Gobble, you don't need to specifysourceMapName
options etc) - if you don't want that, passsourceMap: false
.
MIT. Copyright 2014 Rich Harris
About
Gobble plugin for Babel
Topics
Resources
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published