shoe-shop/app-shell/astro.config.mjs
2024-01-21 20:00:22 +01:00

20 lines
478 B
JavaScript

import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import solidJs from "@astrojs/solid-js";
export default defineConfig({
integrations: [
react(),
solidJs(),
{
name: 'importmap-externals',
hooks: {
'astro:build:setup': ({ vite, target }) => {
if(target === 'client') {
vite.build.rollupOptions["external"] = ["react", "react-dom", "solid-js"];
}
}
}
},
],
});