clay / claycli

A CLI For Clay!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add NODE_ENV to all compiled scripts

nelsonpecora opened this issue · comments

Various third-party libraries commonly access process.env.NODE_ENV to run optimized versions of their code, or access process.versions to determine if they're running in a browser. When compiling, we should always add window.process = window.process | { env: 'development' /* or 'production' */ }; so that these never break.