Skip to content

Commit

Permalink
fix: remove dependency on react
Browse files Browse the repository at this point in the history
  • Loading branch information
stepaniukm committed Dec 31, 2023
1 parent c38d59d commit 6d2fcaf
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 287 deletions.
4 changes: 1 addition & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import sitemap from "@astrojs/sitemap";
import theme from "./horizon-italic.json";
import partytown from "@astrojs/partytown";
import vue from "@astrojs/vue";
import react from "@astrojs/react";

// https://astro.build/config
export default defineConfig({
Expand All @@ -25,8 +24,7 @@ export default defineConfig({
}),
sitemap(),
partytown(),
react(),
vue(),
vue({ exclude: ["**/*.tsx"] }),
],
markdown: {
remarkPlugins: [
Expand Down
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,21 @@
},
"dependencies": {
"@astrojs/partytown": "^2.0.3",
"@astrojs/prefetch": "^0.4.1",
"@astrojs/react": "^3.0.9",
"@astrojs/rss": "4.0.1",
"@astrojs/vercel": "^6.1.1",
"@astrojs/vue": "^4.0.6",
"@builder.io/qwik": "^1.3.1",
"@fullcalendar/core": "6.1.10",
"@fullcalendar/daygrid": "6.1.10",
"@fullcalendar/interaction": "6.1.10",
"@fullcalendar/vue3": "^6.1.10",
"@giscus/vue": "^2.4.0",
"@qwikdev/astro": "^0.3.4",
"@vercel/analytics": "1.1.1",
"@vitejs/plugin-legacy": "5.2.0",
"astro": "4.0.8",
"core-js": "3.35.0",
"fuse.js": "7.0.0",
"github-slugger": "2.0.0",
"prettier-plugin-astro": "0.12.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark-collapse": "0.1.2",
"remark-toc": "9.0.0",
"satori": "0.10.11",
Expand Down
117 changes: 2 additions & 115 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const isBlogPost = activeNav.startsWith("posty/");
<ViewTransitions />
</>
<body>
{isBlogPost && <Progress />}
{isBlogPost && <Progress client:only />}
<Header transition:persist activeNav={activeNav} />
<main id="main-content" class="mx-auto w-full max-w-3xl px-4 pb-12" transition:animate="slide">
<Breadcrumbs />
Expand Down
Loading

0 comments on commit 6d2fcaf

Please sign in to comment.