var SandboxedModule = require('sandboxed-module');
SandboxedModule.require('./foo', { sourceTransformers: {
test: function (source) {
console.log('test source transformer:', this.filename);
return source;
}
}});
I would expect that any calls to require inside of the sandboxed module would carry the same options (e.g. sourceTransformers) as the initial sandboxed module.
See https://github.com/felixge/node-sandboxed-module/issues/41.
Given:
I would expect that any calls to require inside of the sandboxed module would carry the same options (e.g.
sourceTransformers
) as the initial sandboxed module.