Skip to content

Commit

Permalink
fix(context): server side rendering (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienharnay authored May 2, 2018
1 parent 77b3261 commit 894fce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const config = {
...(!umd ? Object.keys(pkg.dependencies || {}) : []),
...Object.keys(pkg.peerDependencies || {}),
],
context: 'window',
context: "typeof window !== 'undefined' ? window : global",
plugins: [
resolve({
jsnext: true,
Expand Down

0 comments on commit 894fce0

Please sign in to comment.