Skip to content

calvinmetcalf/inline-process-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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
}

About

inline references to 'process.browser' to 'true'

Resources

Stars

Watchers

Forks

Packages

No packages published