Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shim for `process` variable for CDN modules packed as UMD
if(!this.process) {
this.process = {};
}
if(!this.process.env) {
this.process.env = {};
}
if(!this.process.env.NODE_ENV) {
this.process.env.NODE_ENV = "production";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment