src/server/ssr_exec.js in bridgetown-lit-renderer-2.0.0.beta3 vs src/server/ssr_exec.js in bridgetown-lit-renderer-2.0.0

- old
+ new

@@ -14,15 +14,18 @@ module.exports = { execScript(str) { const vm = require("vm") const contextObject = { - require: require, - console: console, - process: process, - global: global, - URL: URL, - Buffer: Buffer, + require, + console, + process, + global, + URL, + URLSearchParams, + Buffer, + setTimeout() {}, + clearTimeout() {}, __filename: "__lit_eval.js", } return vm.runInNewContext(str, contextObject) },