chore: add preact-compat to use React components

This commit is contained in:
Stefan Imhoff
2023-06-07 10:54:20 +02:00
parent 8b17cb19d8
commit 3fc125ea80
3 changed files with 98 additions and 1 deletions

View File

@@ -19,7 +19,10 @@
"astro-icon": "^0.8.0",
"astro-imagetools": "^0.8.1",
"autoprefixer": "^10.4.14",
"chart.js": "^4.3.0",
"chartjs-plugin-autocolors": "^0.2.2",
"classnames": "^2.3.2",
"deepmerge": "^4.3.1",
"file-type": "^18.4.0",
"find-cache-dir": "^4.0.0",
"mdast-util-to-string": "^3.2.0",
@@ -28,12 +31,16 @@
"postcss": "^8.4.24",
"potrace": "^2.1.8",
"preact": "^10.15.1",
"react": "npm:@preact/compat@^17.1.2",
"react-chartjs-2": "^5.2.0",
"react-dom": "npm:@preact/compat@^17.1.2",
"reading-time": "^1.5.0",
"sharp": "^0.32.1",
"tailwindcss": "^3.3.2"
},
"devDependencies": {
"@types/mdast": "^3.0.11",
"@types/react": "^18.2.8",
"@types/unist": "^2.0.6",
"@typescript-eslint/parser": "^5.59.7",
"cssnano": "^6.0.1",
@@ -54,5 +61,11 @@
"tailwindcss-opentype": "^1.1.0",
"typescript": "^5.0.4",
"vite": "^4.3.9"
},
"pnpm": {
"overrides": {
"react": "npm:@preact/compat@latest",
"react-dom": "npm:@preact/compat@latest"
}
}
}