Skip to content

Commit 4d7740f

Browse files
authored
Merge pull request DuendeArchive#714 from lmachens/fix-ssr
fix: window is not defined
2 parents 01c872a + 7a1efc0 commit 4d7740f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ gulp.task('build-lib-sourcemap', ['jsrsasign'], function() {
1717
entry: npmEntry,
1818
output: {
1919
filename:'oidc-client.js',
20-
libraryTarget:'umd'
20+
libraryTarget:'umd',
21+
// Workaround for https://github.com/webpack/webpack/issues/6642
22+
globalObject: 'this'
2123
},
2224
plugins: [],
2325
devtool:'inline-source-map'
@@ -34,6 +36,8 @@ gulp.task('build-lib-min', ['jsrsasign'], function() {
3436
output: {
3537
filename:'oidc-client.min.js',
3638
libraryTarget:'umd',
39+
// Workaround for https://github.com/webpack/webpack/issues/6642
40+
globalObject: 'this'
3741
},
3842
plugins: [],
3943
devtool: false,

0 commit comments

Comments
 (0)