Experiment to rebuild Diffuse using web applets.
1import { defineConfig } from "astro/config";
2import scope from "astro-scope";
3import wasm from "vite-plugin-wasm";
4import worker from "@astropub/worker";
5
6import purgecss from "astro-purgecss";
7
8export default defineConfig({
9 integrations: [scope(), purgecss(), worker()],
10 build: {
11 inlineStylesheets: "never",
12 },
13 vite: {
14 plugins: [wasm()],
15 server: {
16 hmr: false,
17 },
18 build: {
19 target: "esnext",
20 },
21 worker: {
22 format: "es",
23 },
24 },
25});