Closed mubaidr closed 6 years ago
I can confirm that this fails with the Parcel bundler. I get isNode === true
, even in the browser.
Pull request: https://github.com/flexdinesh/browser-or-node/pull/2
PR #2 should address this issue. Closing it as it's been merged.
It still fail with babelify browserify IsNode===true
@cesarve77 I haven't published a new version yet. I'll definitely publish a new version tomorrow.
v1.1.0 is now published with these changes.
I think Bundlers (like webpack, parcel) define these properties/methods n their own, so i think this will fail in those environments.