Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 19, 2018. It is now read-only.
/gobble-babelPublic archive

Gobble plugin for Babel

NotificationsYou must be signed in to change notification settings

babel/gobble-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compile ES6 files with gobble and babel. Creates sourcemaps automatically.

Installation

First, you need to have gobble installed - see thegobble readme for details. Then,

npm i -D gobble-babel babel-preset-es2015

Usage

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.

License

MIT. Copyright 2014 Rich Harris


[8]ページ先頭

©2009-2025 Movatter.jp