Skip to content

Commit

Permalink
fix: window is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Machens committed Dec 19, 2018
1 parent fc13446 commit 7a1efc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ gulp.task('build-lib-sourcemap', ['jsrsasign'], function() {
entry: npmEntry,
output: {
filename:'oidc-client.js',
libraryTarget:'umd'
libraryTarget:'umd',
// Workaround for https://github.com/webpack/webpack/issues/6642
globalObject: 'this'
},
plugins: [],
devtool:'inline-source-map'
Expand All @@ -34,6 +36,8 @@ gulp.task('build-lib-min', ['jsrsasign'], function() {
output: {
filename:'oidc-client.min.js',
libraryTarget:'umd',
// Workaround for https://github.com/webpack/webpack/issues/6642
globalObject: 'this'
},
plugins: [],
devtool: false,
Expand Down

0 comments on commit 7a1efc0

Please sign in to comment.