Skip to content

Commit

Permalink
Use .babelrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Aug 17, 2015
1 parent ab400d3 commit f7ea7e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"loose": "all",
"stage": 0
}
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ gulp.task('clean', (done) => {
gulp.task('build:lib', ['clean'], () => {
let babel = require('gulp-babel');
return gulp.src('lib/*.js')
.pipe(babel({ loose: 'all' }))
.pipe(babel())
.pipe(gulp.dest('build/lib'));
});

Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var regexp = ['lib', 'test'].map(function (i) {

require('babel-core/register')({
only: new RegExp('(' + regexp + ')'),
ignore: false,
loose: 'all'
ignore: false
});
module.exports = require('./lib/postcss');

0 comments on commit f7ea7e8

Please sign in to comment.