48851c9d25
* Adds support for a Lit renderer This adds `@astrojs/renderer-lit`. An experimental Lit renderer. * Removed cached submodule, mistake * Prevent globals clobbering * Add docs on globals
9 lines
No EOL
354 B
JavaScript
9 lines
No EOL
354 B
JavaScript
async function polyfill() {
|
|
const { hydrateShadowRoots } = await import('@webcomponents/template-shadowroot/template-shadowroot.js');
|
|
hydrateShadowRoots(document.body);
|
|
}
|
|
|
|
if(!(new DOMParser().parseFromString(`<p><template shadowroot="open"></template></p>`, 'text/html', {
|
|
includeShadowRoots: true
|
|
}).querySelector('p')?.shadowRoot))
|
|
polyfill(); |