0.9.1 • Published 3 months ago

@atomico/astro v0.9.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

@atomico/astro

Early support for using Atomico SSR + Astro Build.

Install

npm i -D @atomico/astro

Usage

import { defineConfig } from "astro/config";
import Atomico from "@atomico/astro";

export default defineConfig({
  integrations: [Atomico()],
});

You must associate the flag to the astro scripts in package.json#script --experimental-integrations, example:

{
  "scripts": {
    "dev": "astro dev --experimental-integrations",
    "start": "astro dev --experimental-integrations",
    "build": "astro build --experimental-integrations",
    "preview": "astro preview --experimental-integrations"
  }
}

Hydration

Atomico applies an automatic hydration, if it is required to hydrate the component on the client, you must include the component script, example:

---
import "./my-component.js" // SSR
---
<script src="./my-component.js"></script> <!--Hydration-->
<my-component></my-component>
0.9.1

3 months ago

0.9.0

5 months ago

0.8.0

9 months ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago