Allow process to be used inside config
This commit is contained in:
parent
e17aab656d
commit
24fa4c12c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue