Skip to content

Commit 894fce0

Browse files
authored
fix(context): server side rendering (#59)
1 parent 77b3261 commit 894fce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const config = {
3030
...(!umd ? Object.keys(pkg.dependencies || {}) : []),
3131
...Object.keys(pkg.peerDependencies || {}),
3232
],
33-
context: 'window',
33+
context: "typeof window !== 'undefined' ? window : global",
3434
plugins: [
3535
resolve({
3636
jsnext: true,

0 commit comments

Comments
 (0)