Skip to content

Commit 6497c56

Browse files
authored
Merge pull request #23 from nutboltu/fix/ssr-support
fix: both browser and nodejs support
2 parents 626ccbf + 2820e1e commit 6497c56

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webpack.production.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
path: path.resolve(__dirname, 'dist'),
1010
library: 'ReactSearch',
1111
libraryTarget: 'umd',
12+
globalObject: 'this',
1213
},
1314
resolve: {
1415
extensions: ['.js', '.jsx'],

0 commit comments

Comments
 (0)