Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(browser support): correct browser detection for webpack (#1135)
currently webpack based projects couldn't import mqtt.js because incorrect browser detection. It's not a problem for react, where node-shims enabled, but a pain for angular (where enabling node-shims isn't supported officially) To fix that issue we need to check if `process` exists (it will be not available in browser) Also due to shims in webpack we need to check are we in process of bundling, or not.
- Loading branch information