Skip to content

Instantly share code, notes, and snippets.

@knee-cola
Created December 5, 2018 09:32
Show Gist options
  • Save knee-cola/df840ea611bcf19d1540bbb3b6bc8925 to your computer and use it in GitHub Desktop.
Save knee-cola/df840ea611bcf19d1540bbb3b6bc8925 to your computer and use it in GitHub Desktop.
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