Skip to content

Commit

Permalink
disable shady dom in node dev build
Browse files Browse the repository at this point in the history
  • Loading branch information
WickyNilliams committed Jan 10, 2023
1 parent 393e30c commit 0c433e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/friendly-papayas-glow.md
@@ -0,0 +1,6 @@
---
'lit': patch
'lit-html': patch
---

disable shadydom in node dev environments
2 changes: 2 additions & 0 deletions rollup-common.js
Expand Up @@ -494,6 +494,8 @@ export function litProdConfig({
// i.e. using globalThis instead of window, and shimming APIs
// needed for Lit bootup.
'const NODE_MODE = false': 'const NODE_MODE = true',
'const ENABLE_SHADYDOM_NOPATCH = true':
'const ENABLE_SHADYDOM_NOPATCH = false',
},
}),
sourcemaps(),
Expand Down

0 comments on commit 0c433e3

Please sign in to comment.