Version 1.9.0 : Migrate to preact and update react-router.
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Madeorsk 2024-11-29 17:43:56 +01:00
parent 43c0297b04
commit 3cb2f1504c
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F
3 changed files with 445 additions and 294 deletions

View file

@ -1,5 +1,5 @@
{
"version": "1.8.1",
"version": "1.9.0",
"name": "@kernelui/core",
"description": "Kernel UI Core.",
"scripts": {
@ -26,25 +26,27 @@
"uuid": "^10.0.0"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@phosphor-icons/react": "^2.1.7",
"@preact/compat": "^18.3.1",
"@preact/preset-vite": "^2.9.2",
"@types/babel__core": "^7",
"@types/node": "^22.7.4",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@types/uuid": "^10",
"@vitejs/plugin-react": "^4.3.0",
"less": "^4.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"preact": "^10.25.0",
"react-router-dom": "^7.0.1",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vite-plugin-dts": "^4.2.2"
},
"peerDependencies": {
"@phosphor-icons/react": "^2.1.7",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.24.1"
"@preact/compat": "^18.3.1",
"preact": "^10.25.0",
"react-router-dom": "^7.0.1"
},
"packageManager": "yarn@4.5.0"
}

View file

@ -1,6 +1,6 @@
import {ConfigEnv, defineConfig, UserConfig} from "vite";
import dts from "vite-plugin-dts";
import react from "@vitejs/plugin-react";
import preact from "@preact/preset-vite";
// https://vitejs.dev/config/
@ -16,12 +16,12 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
fileName: "index",
},
rollupOptions: {
external: ["react", "react-dom", "react-router-dom", "@phosphor-icons/react"],
external: ["preact", "@preact/compat", "react-router-dom", "@phosphor-icons/react"],
},
},
plugins: [
react(),
preact(),
dts({
rollupTypes: true,
insertTypesEntry: true,

715
yarn.lock

File diff suppressed because it is too large Load diff