Skip to content

Commit

Permalink
fix: npm module standalone bug
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Mar 15, 2017
1 parent 2f9fae1 commit 2d4b369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ gulp.task('npm', ['commonjs-format', 'standalone-format'], function(){
var standaloneStream = gulp.src('build/standalone/hilo-standalone.js')
.pipe(footer(`
if(typeof module !== 'undefined' && module.exports){
module.exports = Hilo;
module.exports = window.Hilo;
}
`))
.pipe(gulp.dest('build/commonjs'));
Expand Down

0 comments on commit 2d4b369

Please sign in to comment.