From 3284fa05902a6f62248a914e2ac15ac787bfeaba Mon Sep 17 00:00:00 2001 From: Rob Knight Date: Sat, 14 Sep 2024 12:07:47 +0200 Subject: [PATCH] Switch test-app to vite --- examples/test-app/build.ts | 77 ------ examples/test-app/{public => }/index.html | 6 +- examples/test-app/package.json | 18 +- examples/test-app/postcss.config.js | 6 + examples/test-app/src/index.css | 3 + examples/test-app/src/main.tsx | 12 +- examples/test-app/styles/index.css | 3 - examples/test-app/tsconfig.app.json | 21 ++ examples/test-app/tsconfig.json | 18 +- examples/test-app/tsconfig.node.json | 19 ++ examples/test-app/vite.config.ts | 20 ++ packages/app-connector/package.json | 4 +- packages/eslint-config/eslint.base.config.mjs | 8 +- pnpm-lock.yaml | 234 +++--------------- 14 files changed, 138 insertions(+), 311 deletions(-) delete mode 100644 examples/test-app/build.ts rename examples/test-app/{public => }/index.html (58%) create mode 100644 examples/test-app/postcss.config.js create mode 100644 examples/test-app/src/index.css delete mode 100644 examples/test-app/styles/index.css create mode 100644 examples/test-app/tsconfig.app.json create mode 100644 examples/test-app/tsconfig.node.json create mode 100644 examples/test-app/vite.config.ts diff --git a/examples/test-app/build.ts b/examples/test-app/build.ts deleted file mode 100644 index 2e34de4..0000000 --- a/examples/test-app/build.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { NodeGlobalsPolyfillPlugin } from "@esbuild-plugins/node-globals-polyfill"; -import { NodeModulesPolyfillPlugin } from "@esbuild-plugins/node-modules-polyfill"; -import * as dotenv from "dotenv"; -import { build, BuildOptions, context } from "esbuild"; -import { tailwindPlugin } from "esbuild-plugin-tailwindcss"; -import fs from "fs"; - -dotenv.config(); - -const define = { - "process.env.CLIENT_URL": JSON.stringify( - process.env.CLIENT_URL ?? "http://localhost:5173" - ), - "process.env.CLIENT_TYPE": JSON.stringify(process.env.CLIENT_TYPE ?? "iframe") -}; - -const testClientAppOpts: BuildOptions = { - sourcemap: true, - bundle: true, - define: { - ...define, - "process.env.NODE_ENV": `'${process.env.NODE_ENV}'` - }, - entryPoints: ["src/main.tsx"], - plugins: [ - tailwindPlugin(), - NodeModulesPolyfillPlugin(), - NodeGlobalsPolyfillPlugin({ - process: true, - buffer: true - }) - ], - loader: { - ".svg": "dataurl" - }, - outdir: "public/js", - metafile: true -}; - -run(process.argv[2] ?? "") - .then(() => console.log("Built test client artifacts")) - .catch((err) => console.error(err)); - -async function run(command: string): Promise { - switch (command) { - case "build": - const clientRes = await build({ - ...testClientAppOpts, - minify: true - }); - console.error("Built client"); - - // Bundle size data for use with https://esbuild.github.io/analyze/ - fs.writeFileSync( - `${testClientAppOpts.outdir}/bundle-size.json`, - JSON.stringify(clientRes.metafile) - ); - - break; - case "dev": - const ctx = await context(testClientAppOpts); - await ctx.watch(); - - const options = { - host: "0.0.0.0", - port: 3200, - servedir: "public" - }; - - const { host, port } = await ctx.serve(options); - - console.log(`Serving test client on http://${host}:${port}`); - break; - default: - throw new Error(`Unknown command ${command}`); - } -} diff --git a/examples/test-app/public/index.html b/examples/test-app/index.html similarity index 58% rename from examples/test-app/public/index.html rename to examples/test-app/index.html index c52d9ba..94bfe4a 100644 --- a/examples/test-app/public/index.html +++ b/examples/test-app/index.html @@ -2,15 +2,11 @@ Test client - - -
+ diff --git a/examples/test-app/package.json b/examples/test-app/package.json index 868e5fd..73f1168 100644 --- a/examples/test-app/package.json +++ b/examples/test-app/package.json @@ -2,6 +2,7 @@ "name": "test-app", "version": "1.0.0", "private": true, + "type": "module", "scripts": { "dev": "tsx build.ts dev", "build": "tsx build.ts build", @@ -11,29 +12,26 @@ "@parcnet/app-connector": "workspace:*", "@parcnet/podspec": "workspace:*", "@pcd/pod": "0.1.5", - "dotenv": "^16.0.3", "json-bigint": "^1.0.0", "lodash": "^4.17.21", "react": "^18.2.0", "react-dom": "^18.2.0", - "react-icons": "^5.0.1" + "react-icons": "^5.0.1", + "vite-plugin-node-polyfills": "^0.22.0" }, "devDependencies": { - "@esbuild-plugins/node-globals-polyfill": "^0.2.3", - "@esbuild-plugins/node-modules-polyfill": "^0.2.2", "@tailwindcss/forms": "^0.5.7", "@tailwindcss/typography": "^0.5.14", "@types/json-bigint": "^1.0.1", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", + "@vitejs/plugin-react": "^4.3.1", "autoprefixer": "^10.0.1", "daisyui": "^4.12.10", - "esbuild": "^0.23.1", - "esbuild-plugin-tailwindcss": "^1.2.1", - "postcss": "^8.4.38", - "tailwindcss": "^3.4.3", - "tsx": "^4.19.0", - "typescript": "^5.5" + "postcss": "^8.4.41", + "tailwindcss": "^3.4.10", + "typescript": "^5.5", + "vite": "^5.4.4" } } diff --git a/examples/test-app/postcss.config.js b/examples/test-app/postcss.config.js new file mode 100644 index 0000000..ba80730 --- /dev/null +++ b/examples/test-app/postcss.config.js @@ -0,0 +1,6 @@ +export default { + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +}; diff --git a/examples/test-app/src/index.css b/examples/test-app/src/index.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/examples/test-app/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/examples/test-app/src/main.tsx b/examples/test-app/src/main.tsx index aa599ed..03f81b7 100644 --- a/examples/test-app/src/main.tsx +++ b/examples/test-app/src/main.tsx @@ -1,6 +1,5 @@ -import { ReactNode } from "react"; +import { ReactNode, StrictMode } from "react"; import { createRoot } from "react-dom/client"; -import "../styles/index.css"; import { GPC } from "./apis/GPC"; import { Identity } from "./apis/Identity"; import { PODSection } from "./apis/PODSection"; @@ -9,6 +8,7 @@ import { ParcnetClientProvider, useParcnetClient } from "./hooks/useParcnetClient"; +import "./index.css"; import { getConnectionInfo } from "./utils"; const zapp = { @@ -36,9 +36,11 @@ export default function Main(): ReactNode { function App(): ReactNode { return ( - -
- + + +
+ + ); } const root = createRoot( diff --git a/examples/test-app/styles/index.css b/examples/test-app/styles/index.css deleted file mode 100644 index 76fcadc..0000000 --- a/examples/test-app/styles/index.css +++ /dev/null @@ -1,3 +0,0 @@ -@import "tailwindcss/base"; -@import "tailwindcss/components"; -@import "tailwindcss/utilities"; diff --git a/examples/test-app/tsconfig.app.json b/examples/test-app/tsconfig.app.json new file mode 100644 index 0000000..abbd7b0 --- /dev/null +++ b/examples/test-app/tsconfig.app.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2020", + "useDefineForClassFields": true, + "lib": ["ES2020", "DOM", "DOM.Iterable"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + "jsx": "react-jsx", + + /* Linting */ + "strict": true + }, + "include": ["src"] +} diff --git a/examples/test-app/tsconfig.json b/examples/test-app/tsconfig.json index 79c6c87..1ffef60 100644 --- a/examples/test-app/tsconfig.json +++ b/examples/test-app/tsconfig.json @@ -1,15 +1,7 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "downlevelIteration": true, - "jsx": "react-jsx", - "lib": ["ES2020", "DOM"], - "module": "ES2020", - "moduleResolution": "Bundler", - "esModuleInterop": true, - "strict": true, - "sourceMap": true - }, - "include": ["**/*.ts", "**/*.tsx"], - "exclude": ["node_modules", "../../node_modules"] + "files": [], + "references": [ + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ] } diff --git a/examples/test-app/tsconfig.node.json b/examples/test-app/tsconfig.node.json new file mode 100644 index 0000000..d851803 --- /dev/null +++ b/examples/test-app/tsconfig.node.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["ES2023"], + "module": "ESNext", + "skipLibCheck": true, + + /* Bundler mode */ + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "isolatedModules": true, + "moduleDetection": "force", + "noEmit": true, + + /* Linting */ + "strict": true + }, + "include": ["vite.config.ts"] +} diff --git a/examples/test-app/vite.config.ts b/examples/test-app/vite.config.ts new file mode 100644 index 0000000..0c259af --- /dev/null +++ b/examples/test-app/vite.config.ts @@ -0,0 +1,20 @@ +import react from "@vitejs/plugin-react"; +import { defineConfig } from "vite"; +import { nodePolyfills } from "vite-plugin-node-polyfills"; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [ + react(), + nodePolyfills({ + include: ["assert", "buffer"] + }) + ], + esbuild: { + target: "es2020" + }, + server: { + port: 3200 + }, + clearScreen: false +}); diff --git a/packages/app-connector/package.json b/packages/app-connector/package.json index 8e73ed7..5b53d4c 100644 --- a/packages/app-connector/package.json +++ b/packages/app-connector/package.json @@ -4,8 +4,8 @@ "version": "0.0.2", "license": "GPL-3.0-or-later", "type": "module", - "main": "dist/index.js", - "module": "dist/index.mjs", + "main": "dist/index.cjs", + "module": "dist/index.js", "types": "src/index.ts", "scripts": { "lint": "eslint . --max-warnings 0", diff --git a/packages/eslint-config/eslint.base.config.mjs b/packages/eslint-config/eslint.base.config.mjs index 34f6f03..d2903c9 100644 --- a/packages/eslint-config/eslint.base.config.mjs +++ b/packages/eslint-config/eslint.base.config.mjs @@ -12,7 +12,13 @@ export default tseslint.config( ...tseslint.configs.stylisticTypeChecked, { - ignores: ["**/node_modules/*", "**/dist/", "**/vitest.config.ts"] // global ignore with single ignore key + ignores: [ + "**/node_modules/*", + "**/dist/", + "**/vitest.config.ts", + "**/vite.config.ts", + "**/tailwind.config.ts" + ] // global ignore with single ignore key }, { languageOptions: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3404ec0..a281e8a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -178,9 +178,6 @@ importers: '@pcd/pod': specifier: 0.1.5 version: 0.1.5 - dotenv: - specifier: ^16.0.3 - version: 16.4.5 json-bigint: specifier: ^1.0.0 version: 1.0.0 @@ -196,13 +193,10 @@ importers: react-icons: specifier: ^5.0.1 version: 5.3.0(react@18.3.1) + vite-plugin-node-polyfills: + specifier: ^0.22.0 + version: 0.22.0(rollup@4.21.2)(vite@5.4.4(@types/node@20.16.3)) devDependencies: - '@esbuild-plugins/node-globals-polyfill': - specifier: ^0.2.3 - version: 0.2.3(esbuild@0.23.1) - '@esbuild-plugins/node-modules-polyfill': - specifier: ^0.2.2 - version: 0.2.2(esbuild@0.23.1) '@tailwindcss/forms': specifier: ^0.5.7 version: 0.5.8(tailwindcss@3.4.10(ts-node@10.9.2(@types/node@20.16.3)(typescript@5.5.4))) @@ -221,30 +215,27 @@ importers: '@types/react-dom': specifier: ^18 version: 18.3.0 + '@vitejs/plugin-react': + specifier: ^4.3.1 + version: 4.3.1(vite@5.4.4(@types/node@20.16.3)) autoprefixer: specifier: ^10.0.1 version: 10.4.20(postcss@8.4.44) daisyui: specifier: ^4.12.10 version: 4.12.10(postcss@8.4.44) - esbuild: - specifier: ^0.23.1 - version: 0.23.1 - esbuild-plugin-tailwindcss: - specifier: ^1.2.1 - version: 1.2.1(ts-node@10.9.2(@types/node@20.16.3)(typescript@5.5.4)) postcss: - specifier: ^8.4.38 + specifier: ^8.4.41 version: 8.4.44 tailwindcss: - specifier: ^3.4.3 + specifier: ^3.4.10 version: 3.4.10(ts-node@10.9.2(@types/node@20.16.3)(typescript@5.5.4)) - tsx: - specifier: ^4.19.0 - version: 4.19.0 typescript: specifier: ^5.5 version: 5.5.4 + vite: + specifier: ^5.4.4 + version: 5.4.4(@types/node@20.16.3) packages/app-connector: dependencies: @@ -545,16 +536,6 @@ packages: resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} engines: {node: '>=12'} - '@esbuild-plugins/node-globals-polyfill@0.2.3': - resolution: {integrity: sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==} - peerDependencies: - esbuild: '*' - - '@esbuild-plugins/node-modules-polyfill@0.2.2': - resolution: {integrity: sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==} - peerDependencies: - esbuild: '*' - '@esbuild/aix-ppc64@0.21.5': resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} engines: {node: '>=12'} @@ -1814,10 +1795,6 @@ packages: resolution: {integrity: sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==} engines: {node: '>=12'} - dotenv@16.4.5: - resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} - engines: {node: '>=12'} - eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} @@ -1883,9 +1860,6 @@ packages: resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==} engines: {node: '>= 0.4'} - esbuild-plugin-tailwindcss@1.2.1: - resolution: {integrity: sha512-vPVSWBvUcxqBjObNTNA5vH0OhivbnQBeFfji4Q1QdyfaHUFd66R1ztskkTr8G1ipkGck/YsAZpgcQUdbGPofNQ==} - esbuild@0.21.5: resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} engines: {node: '>=12'} @@ -2052,9 +2026,6 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} - estree-walker@0.6.1: - resolution: {integrity: sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==} - estree-walker@2.0.2: resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} @@ -2182,9 +2153,6 @@ packages: functions-have-names@1.2.3: resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==} - generic-names@4.0.0: - resolution: {integrity: sha512-ySFolZQfw9FoDb3ed9d80Cm9f0+r7qj+HJkWjeD9RBfpxEVTlVhol+gvaQB/78WbwYfbnNh8nWHHBSlg072y6A==} - gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -2322,12 +2290,6 @@ packages: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} - icss-utils@5.1.0: - resolution: {integrity: sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==} - engines: {node: ^10 || ^12 || >= 14} - peerDependencies: - postcss: ^8.1.0 - ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -2568,17 +2530,10 @@ packages: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - loader-utils@3.3.1: - resolution: {integrity: sha512-FMJTLMXfCLMLfJxcX9PFqX5qD88Z5MRGaZCVzfuqeZSPsyiBzs+pahDQjbIWz2QIzPZz0NX9Zy4FX3lmK6YHIg==} - engines: {node: '>= 12.13.0'} - locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} - lodash.camelcase@4.3.0: - resolution: {integrity: sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==} - lodash.castarray@4.4.0: resolution: {integrity: sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==} @@ -2610,9 +2565,6 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} - magic-string@0.25.9: - resolution: {integrity: sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==} - magic-string@0.30.11: resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==} @@ -2965,35 +2917,6 @@ packages: yaml: optional: true - postcss-modules-extract-imports@3.1.0: - resolution: {integrity: sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==} - engines: {node: ^10 || ^12 || >= 14} - peerDependencies: - postcss: ^8.1.0 - - postcss-modules-local-by-default@4.0.5: - resolution: {integrity: sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw==} - engines: {node: ^10 || ^12 || >= 14} - peerDependencies: - postcss: ^8.1.0 - - postcss-modules-scope@3.2.0: - resolution: {integrity: sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ==} - engines: {node: ^10 || ^12 || >= 14} - peerDependencies: - postcss: ^8.1.0 - - postcss-modules-values@4.0.0: - resolution: {integrity: sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ==} - engines: {node: ^10 || ^12 || >= 14} - peerDependencies: - postcss: ^8.1.0 - - postcss-modules@6.0.0: - resolution: {integrity: sha512-7DGfnlyi/ju82BRzTIjWS5C4Tafmzl3R79YP/PASiocj+aa6yYphHhhKUOEoXQToId5rgyFgJ88+ccOUydjBXQ==} - peerDependencies: - postcss: ^8.0.0 - postcss-nested@6.2.0: resolution: {integrity: sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==} engines: {node: '>=12.0'} @@ -3147,16 +3070,6 @@ packages: ripemd160@2.0.2: resolution: {integrity: sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==} - rollup-plugin-inject@3.0.2: - resolution: {integrity: sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==} - deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject. - - rollup-plugin-node-polyfills@0.2.1: - resolution: {integrity: sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==} - - rollup-pluginutils@2.8.2: - resolution: {integrity: sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==} - rollup@4.21.2: resolution: {integrity: sha512-e3TapAgYf9xjdLvKQCkQTnbTKd4a6jwlpQSJJFokHGaX2IVjoEqkIIhiQfqsi0cdwlOD+tQGuOd5AJkc5RngBw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} @@ -3269,10 +3182,6 @@ packages: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} - sourcemap-codec@1.4.8: - resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} - deprecated: Please use @jridgewell/sourcemap-codec instead - stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -3292,9 +3201,6 @@ packages: stream-http@3.2.0: resolution: {integrity: sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==} - string-hash@1.1.3: - resolution: {integrity: sha512-kJUvRUFK49aub+a7T1nNE66EJbZBMnBgoC1UbCZ5n6bsZKBRga4KgBRTMn/pFkeCZSYtNeSyMxPDM0AXWELk2A==} - string-width@4.2.3: resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} engines: {node: '>=8'} @@ -3931,16 +3837,6 @@ snapshots: '@jridgewell/trace-mapping': 0.3.9 optional: true - '@esbuild-plugins/node-globals-polyfill@0.2.3(esbuild@0.23.1)': - dependencies: - esbuild: 0.23.1 - - '@esbuild-plugins/node-modules-polyfill@0.2.2(esbuild@0.23.1)': - dependencies: - esbuild: 0.23.1 - escape-string-regexp: 4.0.0 - rollup-plugin-node-polyfills: 0.2.1 - '@esbuild/aix-ppc64@0.21.5': optional: true @@ -4650,6 +4546,17 @@ snapshots: '@typescript-eslint/types': 8.4.0 eslint-visitor-keys: 3.4.3 + '@vitejs/plugin-react@4.3.1(vite@5.4.4(@types/node@20.16.3))': + dependencies: + '@babel/core': 7.25.2 + '@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/core@7.25.2) + '@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/core@7.25.2) + '@types/babel__core': 7.20.5 + react-refresh: 0.14.2 + vite: 5.4.4(@types/node@20.16.3) + transitivePeerDependencies: + - supports-color + '@vitejs/plugin-react@4.3.1(vite@5.4.4(@types/node@22.5.4))': dependencies: '@babel/core': 7.25.2 @@ -5258,8 +5165,6 @@ snapshots: dotenv@16.0.3: {} - dotenv@16.4.5: {} - eastasianwidth@0.2.0: {} easy-table@1.2.0: @@ -5374,15 +5279,6 @@ snapshots: is-date-object: 1.0.5 is-symbol: 1.0.4 - esbuild-plugin-tailwindcss@1.2.1(ts-node@10.9.2(@types/node@20.16.3)(typescript@5.5.4)): - dependencies: - autoprefixer: 10.4.20(postcss@8.4.44) - postcss: 8.4.44 - postcss-modules: 6.0.0(postcss@8.4.44) - tailwindcss: 3.4.10(ts-node@10.9.2(@types/node@20.16.3)(typescript@5.5.4)) - transitivePeerDependencies: - - ts-node - esbuild@0.21.5: optionalDependencies: '@esbuild/aix-ppc64': 0.21.5 @@ -5607,8 +5503,6 @@ snapshots: estraverse@5.3.0: {} - estree-walker@0.6.1: {} - estree-walker@2.0.2: {} estree-walker@3.0.3: @@ -5789,10 +5683,6 @@ snapshots: functions-have-names@1.2.3: {} - generic-names@4.0.0: - dependencies: - loader-utils: 3.3.1 - gensync@1.0.0-beta.2: {} get-func-name@2.0.2: {} @@ -5930,10 +5820,6 @@ snapshots: dependencies: safer-buffer: 2.1.2 - icss-utils@5.1.0(postcss@8.4.44): - dependencies: - postcss: 8.4.44 - ieee754@1.2.1: {} ignore@5.3.2: {} @@ -6154,14 +6040,10 @@ snapshots: load-tsconfig@0.2.5: {} - loader-utils@3.3.1: {} - locate-path@6.0.0: dependencies: p-locate: 5.0.0 - lodash.camelcase@4.3.0: {} - lodash.castarray@4.4.0: {} lodash.isplainobject@4.0.6: {} @@ -6188,10 +6070,6 @@ snapshots: dependencies: yallist: 3.1.1 - magic-string@0.25.9: - dependencies: - sourcemap-codec: 1.4.8 - magic-string@0.30.11: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -6519,39 +6397,6 @@ snapshots: tsx: 4.19.0 yaml: 2.5.0 - postcss-modules-extract-imports@3.1.0(postcss@8.4.44): - dependencies: - postcss: 8.4.44 - - postcss-modules-local-by-default@4.0.5(postcss@8.4.44): - dependencies: - icss-utils: 5.1.0(postcss@8.4.44) - postcss: 8.4.44 - postcss-selector-parser: 6.1.2 - postcss-value-parser: 4.2.0 - - postcss-modules-scope@3.2.0(postcss@8.4.44): - dependencies: - postcss: 8.4.44 - postcss-selector-parser: 6.1.2 - - postcss-modules-values@4.0.0(postcss@8.4.44): - dependencies: - icss-utils: 5.1.0(postcss@8.4.44) - postcss: 8.4.44 - - postcss-modules@6.0.0(postcss@8.4.44): - dependencies: - generic-names: 4.0.0 - icss-utils: 5.1.0(postcss@8.4.44) - lodash.camelcase: 4.3.0 - postcss: 8.4.44 - postcss-modules-extract-imports: 3.1.0(postcss@8.4.44) - postcss-modules-local-by-default: 4.0.5(postcss@8.4.44) - postcss-modules-scope: 3.2.0(postcss@8.4.44) - postcss-modules-values: 4.0.0(postcss@8.4.44) - string-hash: 1.1.3 - postcss-nested@6.2.0(postcss@8.4.44): dependencies: postcss: 8.4.44 @@ -6714,20 +6559,6 @@ snapshots: hash-base: 3.1.0 inherits: 2.0.4 - rollup-plugin-inject@3.0.2: - dependencies: - estree-walker: 0.6.1 - magic-string: 0.25.9 - rollup-pluginutils: 2.8.2 - - rollup-plugin-node-polyfills@0.2.1: - dependencies: - rollup-plugin-inject: 3.0.2 - - rollup-pluginutils@2.8.2: - dependencies: - estree-walker: 0.6.1 - rollup@4.21.2: dependencies: '@types/estree': 1.0.5 @@ -6880,8 +6711,6 @@ snapshots: dependencies: whatwg-url: 7.1.0 - sourcemap-codec@1.4.8: {} - stackback@0.0.2: {} static-eval@2.0.2: @@ -6904,8 +6733,6 @@ snapshots: readable-stream: 3.6.2 xtend: 4.0.2 - string-hash@1.1.3: {} - string-width@4.2.3: dependencies: emoji-regex: 8.0.0 @@ -7333,6 +7160,14 @@ snapshots: - supports-color - terser + vite-plugin-node-polyfills@0.22.0(rollup@4.21.2)(vite@5.4.4(@types/node@20.16.3)): + dependencies: + '@rollup/plugin-inject': 5.0.5(rollup@4.21.2) + node-stdlib-browser: 1.2.0 + vite: 5.4.4(@types/node@20.16.3) + transitivePeerDependencies: + - rollup + vite-plugin-node-polyfills@0.22.0(rollup@4.21.2)(vite@5.4.4(@types/node@22.5.4)): dependencies: '@rollup/plugin-inject': 5.0.5(rollup@4.21.2) @@ -7341,6 +7176,15 @@ snapshots: transitivePeerDependencies: - rollup + vite@5.4.4(@types/node@20.16.3): + dependencies: + esbuild: 0.21.5 + postcss: 8.4.44 + rollup: 4.21.2 + optionalDependencies: + '@types/node': 20.16.3 + fsevents: 2.3.3 + vite@5.4.4(@types/node@22.5.4): dependencies: esbuild: 0.21.5