Will env. vars affect imports from node_modules?
<p>I'm extracting some utility functions from my project into <code>npm modules</code> so I can use them in other projects. </p>

<p>Some of these functions rely on <code>API Keys</code>, and use different <code>API Keys</code> for <code>DEV</code> and <code>PROD</code> environments.  </p>

<p>In the main project, this isn't a problem, as my <code>build</code> process sets the <code>environment vars</code> correctly, and my <code>webpack build</code> process results in the correct <code>keys</code> in the source code.</p>

<p>If I include the <code>API Keys</code> in the <code>npm modules</code> with the same <code>DEV | PROD</code> ternaries, will the <code>environment vars</code> of the main project work the same for the modules as they did for the code when it was in the main project? </p>

<pre><code>// mymodule/index.js
export default function() {
  return __PROD__ === true ? "abc" : "123"
  // ....
}

// project/index.js in __DEV__ environment
import getKey from 'my-module'

getKey() // should return "123"
</code></pre>