process object needs to be available
justinbmeyer opened this issue · comments
Justin Meyer commented
If a global build depends on process
, steal will load fine during development b/c the npm
plugin adds process
:
g.process = {
argv: [],
cwd: function(){
var baseURL = loader.baseURL;
return baseURL;
},
browser: true,
env: {
NODE_ENV: loader.env
},
version: '',
platform: (navigator && navigator.userAgent && /Windows/.test(navigator.userAgent)) ? "win" : ""
};
But this is not added by the global build.
Should this be detected? Or optional?