Performance to the moon (#1946)

* to the moon

* ignore searchbar

* fix

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
This commit is contained in:
Utku
2024-01-20 05:52:36 +03:00
committed by GitHub
parent aa83018db5
commit 83e8fe9efc
4 changed files with 6 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import { explorerStore } from '../Explorer/store';
import { useTopBarContext } from './Layout';
import { NavigationButtons } from './NavigationButtons';
// million-ignore
const TopBar = () => {
const transparentBg = useShowControls().transparentBg;
const isDragSelecting = useSelector(explorerStore, (s) => s.isDragSelecting);

View File

@@ -30,5 +30,8 @@
"vite-plugin-inspect": "^0.8.1",
"vite-plugin-solid": "^2.8.0",
"vite-plugin-svgr": "^3.3.0"
},
"dependencies": {
"million": "^2.6.4"
}
}

View File

@@ -1,5 +1,6 @@
import { fileURLToPath } from 'node:url';
import react from '@vitejs/plugin-react-swc';
import million from 'million/compiler';
import { defineConfig } from 'vite';
import { createHtmlPlugin } from 'vite-plugin-html';
import i18nextLoader from 'vite-plugin-i18next-loader';
@@ -12,6 +13,7 @@ const url = new URL('../../../interface/locales', import.meta.url);
export default defineConfig({
plugins: [
million.vite({ auto: true }),
tsconfigPaths(),
i18nextLoader({
paths: [fileURLToPath(url.href)],

BIN
pnpm-lock.yaml generated
View File

Binary file not shown.