Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Albin Ekblom
24fa4c12c6 Allow process to be used inside config 2018-02-26 23:34:00 +01:00

View file

@ -4,7 +4,7 @@ const mapKeys = require('../utils/map-keys');
const _extract = function(script) {
const module = {};
script.runInNewContext({module});
script.runInNewContext({module, process});
if (!module.exports) {
throw new Error('Error reading configuration: `module.exports` not set');
}