astro/packages/renderers/renderer-lit/index.js
Matthew Phillips 48851c9d25
Adds support for a Lit renderer (#665)
* 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
2021-07-13 08:27:40 -04:00

19 lines
489 B
JavaScript

export default {
name: '@astrojs/renderer-lit',
server: './server.js',
external: [
'@lit-labs/ssr/lib/install-global-dom-shim.js',
'@lit-labs/ssr/lib/render-lit-html.js',
'@lit-labs/ssr/lib/lit-element-renderer.js'
],
polyfills: [
'./client-shim.js'
],
hydrationPolyfills: [
'lit/experimental-hydrate-support.js'
],
knownEntrypoints: [
'@astrojs/renderer-lit/client-shim.js',
'@webcomponents/template-shadowroot/template-shadowroot.js'
]
};