diff options
author | 2024-06-05 11:39:42 +0100 | |
---|---|---|
committer | 2024-06-05 11:39:42 +0100 | |
commit | 803dd8061df02138b4928442bcb76e77dcf6f5e7 (patch) | |
tree | c3ed3580e82716ea436dc783fdb31dd8bbc9f647 /packages/integrations/lit/src/index.ts | |
parent | 587e75f47efa346139b71e5e754e051f72bdac39 (diff) | |
download | astro-803dd8061df02138b4928442bcb76e77dcf6f5e7.tar.gz astro-803dd8061df02138b4928442bcb76e77dcf6f5e7.tar.zst astro-803dd8061df02138b4928442bcb76e77dcf6f5e7.zip |
feat(container): provide a virtual module to load renderers (#11144)
* feat(container): provide a virtual module to load renderers
* address feedback
* chore: restore some default to allow to have PHP prototype working
* Thread through renderers and manifest
* Pass manifest too
* update changeset
* add diff
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix diff
* rebase and update lock
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/lit/src/index.ts')
-rw-r--r-- | packages/integrations/lit/src/index.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/integrations/lit/src/index.ts b/packages/integrations/lit/src/index.ts index 6c86bd740..33aaf727d 100644 --- a/packages/integrations/lit/src/index.ts +++ b/packages/integrations/lit/src/index.ts @@ -1,5 +1,5 @@ import { readFileSync } from 'node:fs'; -import type { AstroIntegration } from 'astro'; +import type { AstroIntegration, ContainerRenderer } from 'astro'; function getViteConfiguration() { return { @@ -19,6 +19,13 @@ function getViteConfiguration() { }; } +export function getContainerRenderer(): ContainerRenderer { + return { + name: '@astrojs/lit', + serverEntrypoint: '@astrojs/lit/server.js', + }; +} + export default function (): AstroIntegration { return { name: '@astrojs/lit', |