diff --git a/package.json b/package.json index 52d5a87..5f61c32 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,14 @@ "jotai": "2.12.4", "lightweight-charts": "^5.0.8", "p-limit": "^6.2.0", - "qapp-core": "1.0.36", + "qapp-core": "1.0.54", "react": "19.1.0", "react-colorful": "^5.6.1", "react-dom": "19.1.0", "react-i18next": "15.5.1", "react-router-dom": "7.6.2", - "recharts": "^3.1.2" + "recharts": "^3.1.2", + "vite-plugin-obfuscator-ts": "^3.0.0" }, "devDependencies": { "@eslint/js": "9.21.0", @@ -54,6 +55,6 @@ "tailwindcss": "3.4.1", "typescript": "~5.7.2", "typescript-eslint": "8.24.1", - "vite": "6.3.5" + "vite": "5.4.11" } } diff --git a/vite.config.ts b/vite.config.ts index 2996995..f71b02a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,38 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; - +import obfuscator from 'vite-plugin-obfuscator-ts'; // https://vite.dev/config/ // https://vite.dev/config/ export default defineConfig({ - plugins: [react()], + plugins: [react(), obfuscator({ + obfuscatorOptions: { + compact: true, + controlFlowFlattening: false, + deadCodeInjection: true, + debugProtection: false, + debugProtectionInterval: 0, + disableConsoleOutput: false, + identifierNamesGenerator: 'hexadecimal', + log: true, + numbersToExpressions: false, + renameGlobals: false, + selfDefending: false, + simplify: true, + splitStrings: false, + stringArray: true, + stringArrayCallsTransform: false, + stringArrayCallsTransformThreshold: 0.5, + stringArrayEncoding: [], + stringArrayIndexShift: true, + stringArrayRotate: true, + stringArrayShuffle: true, + stringArrayWrappersCount: 1, + stringArrayWrappersChainedCalls: true, + stringArrayWrappersParametersMaxCount: 2, + stringArrayWrappersType: 'variable', + stringArrayThreshold: 0.75, + unicodeEscapeSequence: false, + }, + }),], base: '', optimizeDeps: { include: ['@mui/material', '@mui/styled-engine', '@mui/system'],