Skip to content

Commit

Permalink
Run derequire as part of the build.
Browse files Browse the repository at this point in the history
This is a workaround for the browserify issue reported in ##20, since
browserify/browserify#1151 seems to be dead in the
water.
  • Loading branch information
wildlyinaccurate committed Jun 12, 2016
1 parent 202104d commit 14f1b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import gulp from 'gulp'
import gutil from 'gulp-util'
import standard from 'gulp-standard'
import browserify from 'browserify'
import derequire from 'gulp-derequire'
import rename from 'gulp-rename'
import uglify from 'gulp-uglify'
import sourcemaps from 'gulp-sourcemaps'
Expand All @@ -26,6 +27,7 @@ gulp.task('js', () => {
.pipe(buffer())
.pipe(sourcemaps.init({ loadMaps: true }))
.pipe(sourcemaps.write('.'))
.pipe(derequire())
.pipe(gulp.dest('dist'))
})

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"browserify": "^13.0.1",
"eslint-plugin-react": "^5.1.1",
"gulp": "^3.9.1",
"gulp-derequire": "^2.1.0",
"gulp-rename": "^1.2.2",
"gulp-sourcemaps": "^1.6.0",
"gulp-standard": "^7.0.1",
Expand Down

0 comments on commit 14f1b91

Please sign in to comment.