Skip to content

Commit 3195109

Browse files
Ignore lib/html-to-dom-server when bundling for the browser
Also, fix the require path for `html-to-dom-client` module in the entry file `index.js`.
1 parent 58e81cc commit 3195109

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var htmlToDOM;
1212

1313
/** Client (Browser). */
1414
if (typeof window !== 'undefined' && this === window) {
15-
htmlToDOM = require('./html-to-dom-client');
15+
htmlToDOM = require('./lib/html-to-dom-client');
1616

1717
/** Server (Node). */
1818
} else {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"react": ">=0.14"
3838
},
3939
"browser": {
40+
"./lib/html-to-dom-server.js": false,
4041
"htmlparser2/lib/Parser": false,
4142
"domhandler": false
4243
},

0 commit comments

Comments
 (0)