From 931ce8326ffe0b2d75c4d666d8feda5be4039bf5 Mon Sep 17 00:00:00 2001 From: OfficialDakari Date: Thu, 3 Apr 2025 09:29:51 +0500 Subject: [PATCH] ffdfd --- build.config.ts | 4 ---- package-lock.json | 18 ++++++++++++++++++ package.json | 1 + tsconfig.json | 3 ++- vite.config.js => vite.config.ts | 5 +---- 5 files changed, 22 insertions(+), 9 deletions(-) delete mode 100644 build.config.ts rename vite.config.js => vite.config.ts (93%) diff --git a/build.config.ts b/build.config.ts deleted file mode 100644 index f646dcd..0000000 --- a/build.config.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default { - base: '/', - }; - \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index cc67e50..2535a26 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ }, "devDependencies": { "@rollup/plugin-inject": "^5.0.5", + "@types/node": "^22.14.0", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "^6.0.0", @@ -2110,6 +2111,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/node": { + "version": "22.14.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.14.0.tgz", + "integrity": "sha512-Kmpl+z84ILoG+3T/zQFyAJsU6EPTmOCj8/2+83fSN6djd6I4o7uOuGIH6vq3PrjY5BGitSbFuMN18j3iknubbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, "node_modules/@types/parse-json": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.2.tgz", @@ -7104,6 +7115,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, "node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", diff --git a/package.json b/package.json index 4e9728b..a0c344a 100644 --- a/package.json +++ b/package.json @@ -48,6 +48,7 @@ }, "devDependencies": { "@rollup/plugin-inject": "^5.0.5", + "@types/node": "^22.14.0", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@typescript-eslint/eslint-plugin": "^6.0.0", diff --git a/tsconfig.json b/tsconfig.json index ada410c..2b4149b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,7 @@ "dist" ], "include": [ - "src" + "src", + "vite.config.ts" ] } \ No newline at end of file diff --git a/vite.config.js b/vite.config.ts similarity index 93% rename from vite.config.js rename to vite.config.ts index 75b0c2f..71214a9 100644 --- a/vite.config.js +++ b/vite.config.ts @@ -2,16 +2,13 @@ import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'; import inject from '@rollup/plugin-inject'; -import buildConfig from './build.config'; import { extname, relative, resolve } from 'path'; import { fileURLToPath } from 'url'; import { glob } from 'glob'; export default defineConfig({ - publicDir: false, - base: buildConfig.base, plugins: [ - react() + react(), ], optimizeDeps: { esbuildOptions: {