inline references to 'process.browser' to 'true'
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
index.js
package.json
readme.md

readme.md

inline-process-browser

Browserify transform which turns any reference to process.browser into true.

Can remove non-browser code when combined with unreachable-branch-transform

turns

if (process.browser) {
  //something
}

into

if (true) {
  //something
}