mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 07:01:15 +00:00
c68e1a2dfe
Configure SandboxedModule with common options, including some globals that are required in Node 12.
9 lines
232 B
JavaScript
9 lines
232 B
JavaScript
const SandboxedModule = require('sandboxed-module')
|
|
|
|
SandboxedModule.configure({
|
|
requires: {
|
|
'logger-sharelatex': { log() {} },
|
|
'@overleaf/metrics': { timeAsyncMethod() {} }
|
|
},
|
|
globals: { Buffer, console, process }
|
|
})
|