Skip to content

Commit

Permalink
[labs/ssr] Add URL and URLSearchParams to VM module global (#3187)
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjk committed Jul 28, 2022
1 parent 3766ae4 commit 84437af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mean-toes-cry.md
@@ -0,0 +1,5 @@
---
'@lit-labs/ssr': patch
---

When using `renderModule`, `URL` and `URLSearchParams` are now available in global of the VM module context
2 changes: 2 additions & 0 deletions packages/labs/ssr/src/lib/dom-shim.ts
Expand Up @@ -168,6 +168,8 @@ export const getWindow = ({
clearTimeout() {},
// Required for node-fetch
Buffer,
URL,
URLSearchParams,
console: {
log(...args: unknown[]) {
console.log(...args);
Expand Down

0 comments on commit 84437af

Please sign in to comment.