Skip to content

pantojs/panto-transformer-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-transformer-babel

NPM version Downloads Build Status Dependency status Dev Dependency status Coverage Status

Babel transformer for panto.

panto.loadTransformer('babel');

panto.pick('**/*.js').read().babel({
    babelOptions: {
        presets: []
    },
    ignoreError: false,
    isSilent: false
});

options:

  • babelOptions: object, see here
  • ignoreError: boolean, if fail when error
  • isSilent: boolean, if log warnning message