@projectevergreen/astro-wcc
Version:
An Astro integration for SSR Web Components using WCC
17 lines (15 loc) • 523 B
Markdown
1. [x] Create as npm package
1. [ ] clean up console logs
1. [ ] Client hints - track as issue
```
<x-greeting client:visible></x-greeting>
```
1. [ ] auto mapping imports - track as issue
1. [ ] additional plugin configurations? - track as question
```js
injectScript("head-inline", readFileSync(new URL("./client-shim.min.js", import.meta.url), { encoding: "utf-8" }));
// https://github.com/thepassle/custom-elements-ssr/blob/master/astro.js#L3
updateConfig({
vite: getViteConfiguration()
});
```