Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #167 Since version 0.4.9, we require `fs` but it should fail if we are in a browser. However, `browser-source-map-support.js` is bundled with browserify which converts unsupported builtins to empty object. See https://github.com/substack/node-browserify/blob/8f5ebbf505/lib/builtins.js#L12 This PR checks if required `fs` contains `readFileSync` which is part of `fs` API.
- Loading branch information