Skip to content

Commit

Permalink
Work around old browserify
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisaphone committed Dec 12, 2019
1 parent c359c2d commit 7b95f78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ gulp.task('dist', function(){
.pipe(uglify())
.pipe(gulp.dest('./dist')),
gulp.src([paths.tests])
// Hack: browserify seems to not support async-await.
// It's probably better to replace gulp-browserify altogether instead.
.pipe(replace(/async function/g, 'function'))
.pipe(browserify())
.pipe(rename('object_hash_test.js'))
.pipe(gulp.dest('./dist'))
Expand Down

0 comments on commit 7b95f78

Please sign in to comment.