Skip to content

Commit

Permalink
fixed build options
Browse files Browse the repository at this point in the history
  • Loading branch information
gcrois committed Dec 14, 2024
1 parent d71625a commit 914fca7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
23 changes: 16 additions & 7 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,21 @@ export default defineConfig({
base: '',
integrations: [react()],
vite: {
css: {
preprocessorOptions: {
scss: {
api: "modern-compiler"
}
}
// Force worker to use ES modules instead of iife
worker: {
format: 'es'
},
build: {
rollupOptions: {
// Ensure the main bundle also uses ES modules
output: {
format: 'es',
},
},
},
ssr: {
// If necessary, ensure @jsquash/jxl isn't externalized
noExternal: ['@jsquash/jxl', '@jsquash/png']
}
}
});
});
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Layout from "@layouts/DefaultLayout.astro";
import ContentCard from "@components/ContentCard.astro";
import Section from "@components/Section.astro";
import { dateToParts } from "src/utils/date";
import { DevToolsStatus } from "../components/fun/Console";
import { DevToolsStatus } from "@components/fun/Console";
const allBlogPosts = await getCollection("blog");
const allResearchPosts = await getCollection("research");
Expand Down

0 comments on commit 914fca7

Please sign in to comment.