Skip to content

Commit f0e7942

Browse files
authored
chore: use only rolldown for building (#7101)
1 parent a5413d7 commit f0e7942

File tree

9 files changed

+459
-719
lines changed

9 files changed

+459
-719
lines changed

admin/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"@types/react-dom": "^19.1.7",
2121
"@typescript-eslint/eslint-plugin": "^8.40.0",
2222
"@typescript-eslint/parser": "^8.40.0",
23-
"@vitejs/plugin-react-swc": "^4.0.1",
2423
"eslint": "^9.33.0",
2524
"eslint-plugin-react-hooks": "^5.2.0",
2625
"eslint-plugin-react-refresh": "^0.4.20",
@@ -34,9 +33,11 @@
3433
"react-router-dom": "^7.8.1",
3534
"socket.io-client": "^4.8.1",
3635
"typescript": "^5.9.2",
37-
"vite": "^7.1.3",
36+
"vite": "npm:rolldown-vite@latest",
3837
"vite-plugin-static-copy": "^3.1.2",
39-
"vite-plugin-svgr": "^4.3.0",
4038
"zustand": "^5.0.8"
39+
},
40+
"overrides": {
41+
"vite": "npm:rolldown-vite@latest"
4142
}
4243
}

admin/public/brand.svg

Lines changed: 50 additions & 0 deletions
Loading

admin/src/pages/ShoutPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const ShoutPage = ()=>{
2020
setShouts([...shouts, shout])
2121
})
2222
pluginSocket.on('results:stats', (statData) => {
23-
console.log('Shoutdata', statData);
2423
setTotalUsers(statData.totalUsers);
2524
})
2625
}

admin/src/utils/LoadingScreen.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {useStore} from "../store/store.ts";
22
import * as Dialog from '@radix-ui/react-dialog';
3-
import ReactComponent from './brand.svg?react';
3+
import brand from './brand.svg'
4+
45
export const LoadingScreen = ()=>{
56
const showLoading = useStore(state => state.showLoading)
67

@@ -10,7 +11,7 @@ export const LoadingScreen = ()=>{
1011
<div className="flex flex-col items-center">
1112
<div className="animate-spin w-16 h-16 border-t-2 border-b-2 border-[--fg-color] rounded-full"></div>
1213
<div className="mt-4 text-[--fg-color]">
13-
<ReactComponent/>
14+
<img src={brand}/>
1415
</div>
1516
</div>
1617
</Dialog.Content>

admin/vite.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { defineConfig } from 'vite'
2-
import react from '@vitejs/plugin-react-swc'
3-
import svgr from 'vite-plugin-svgr'
42
import {viteStaticCopy} from "vite-plugin-static-copy";
53

64
// https://vitejs.dev/config/
75
export default defineConfig({
8-
plugins: [react(), svgr(), viteStaticCopy({
6+
plugins: [viteStaticCopy({
97
targets: [
108
{
119
src: '../src/locales',

doc/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
},
1010
"peerDependencies": {
1111
"search-insights": "^2.17.3"
12+
},
13+
"overrides": {
14+
"vite": "npm:rolldown-vite@latest"
1215
}
1316
}

0 commit comments

Comments
 (0)