Skip to content

Instantly share code, notes, and snippets.

@knee-cola
Created December 5, 2018 09:32
Show Gist options
  • Select an option

  • Save knee-cola/df840ea611bcf19d1540bbb3b6bc8925 to your computer and use it in GitHub Desktop.

Select an option

Save knee-cola/df840ea611bcf19d1540bbb3b6bc8925 to your computer and use it in GitHub Desktop.

Revisions

  1. knee-cola created this gist Dec 5, 2018.
    13 changes: 13 additions & 0 deletions define-process-shim.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    if(!this.process) {
    this.process = {};
    }

    if(!this.process.env) {
    this.process.env = {};
    }

    if(!this.process.env.NODE_ENV) {
    this.process.env.NODE_ENV = "production";
    }