From 51d5dc478993a994268391a5f13eec32ae29f665 Mon Sep 17 00:00:00 2001 From: Tony Sullivan Date: Wed, 29 Jun 2022 20:56:51 +0000 Subject: Updates an error handler to expect updated `@astrojs/lit` behavior (#3766) * fix: don't throw an error when the lit renderer doesn't provide a clientEntrypoint * updating the framework-lit example to match new behavior * fix: updating the playground example to latest lit syntax --- examples/framework-lit/src/components/calc-add.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/framework-lit/src/components/calc-add.js (limited to 'examples/framework-lit/src/components/calc-add.js') diff --git a/examples/framework-lit/src/components/calc-add.js b/examples/framework-lit/src/components/calc-add.js new file mode 100644 index 000000000..b0b3978bf --- /dev/null +++ b/examples/framework-lit/src/components/calc-add.js @@ -0,0 +1,17 @@ +import { LitElement, html } from 'lit'; + +export class CalcAdd extends LitElement { + static get properties() { + return { + num: { + type: Number, + }, + }; + } + + render() { + return html`
Number: ${this.num}
`; + } +} + +customElements.define('calc-add', CalcAdd); -- cgit v1.2.3