Skip to content

Commit

Permalink
don't attempt to set undefined contents on bundled file
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Apr 29, 2020
1 parent e9a20c4 commit d81105a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulp.d/tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = (src, dest, preview) => () => {
Promise.all(mtimePromises).then((mtimes) => {
const newestMtime = mtimes.reduce((max, curr) => (!max || curr > max ? curr : max))
if (newestMtime > file.stat.mtime) file.stat.mtimeMs = +(file.stat.mtime = newestMtime)
file.contents = bundleBuffer
if (bundleBuffer !== undefined) file.contents = bundleBuffer
file.path = file.path.slice(0, file.path.length - 10) + '.js'
next(bundleError, file)
})
Expand Down

0 comments on commit d81105a

Please sign in to comment.