We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22f9932 + 225c66f commit 7cbe86bCopy full SHA for 7cbe86b
src/index.js
@@ -3,7 +3,7 @@
3
* treat as a browser.
4
*/
5
6
-if (typeof process === 'undefined' || process.type === 'renderer') {
+if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true) {
7
module.exports = require('./browser.js');
8
} else {
9
module.exports = require('./node.js');
0 commit comments