diff --git a/packages/react/package-lock.json b/packages/react/package-lock.json index 0f014ae87..4e65345df 100644 --- a/packages/react/package-lock.json +++ b/packages/react/package-lock.json @@ -85,7 +85,7 @@ "@iconify/json": "^2.2.220", "@rollup/plugin-dynamic-import-vars": "^2.1.2", "@rollup/plugin-yaml": "^4.1.2", - "@swc-jotai/debug-label": "^0.1.0", + "@swc-jotai/debug-label": "^0.1.1", "@types/node": "^20.11.17", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", @@ -94,7 +94,7 @@ "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", "@unocss/eslint-config": "^0.60.3", - "@vitejs/plugin-react": "^4.3.0", + "@vitejs/plugin-react": "^4.3.1", "@vitejs/plugin-react-swc": "^3.7.0", "autoprefixer": "^10.4.19", "browserslist": "^4.23.0", @@ -3337,10 +3337,11 @@ "integrity": "sha512-+9jVqKhRSpsc591z5vX+X5Yyw+he/HCB4iQ/RYxw35CEPaY1gnsNE43nf9n9AaYjAQrTiI/mOwKUKdUs9vf7Xg==" }, "node_modules/@swc-jotai/debug-label": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@swc-jotai/debug-label/-/debug-label-0.1.0.tgz", - "integrity": "sha512-Fe0ag02uBaVBIS/ySKkLSyiMhTUKyw3F0pTAcH+Yc29wZgIt//yFuPv1+p0QrlV6n411BJ0sxq2ei89tvwpFXQ==", - "dev": true + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@swc-jotai/debug-label/-/debug-label-0.1.1.tgz", + "integrity": "sha512-QXn/fNksCLObDqc/g5v0KALpG/paFiWeeVmXG3Dzan2HPFzhGHU1JEq9ryzeLm5mDDJ2lcK9o68nLWA/5vVS7Q==", + "dev": true, + "license": "MIT" }, "node_modules/@swc/core": { "version": "1.5.7", @@ -4704,9 +4705,9 @@ } }, "node_modules/@vitejs/plugin-react": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.0.tgz", - "integrity": "sha512-KcEbMsn4Dpk+LIbHMj7gDPRKaTMStxxWRkRmxsg/jVdFdJCZWt1SchZcf0M4t8lIKdwwMsEyzhrcOXRrDPtOBw==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.1.tgz", + "integrity": "sha512-m/V2syj5CuVnaxcUJOQRel/Wr31FFXRFlnOoq1TVtkCxsY5veGMTEmpWHndrhB2U8ScHtCQB1e+4hWYExQc6Lg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/packages/react/package.json b/packages/react/package.json index 49ec70520..b9ec17e74 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -92,7 +92,7 @@ "@iconify/json": "^2.2.220", "@rollup/plugin-dynamic-import-vars": "^2.1.2", "@rollup/plugin-yaml": "^4.1.2", - "@swc-jotai/debug-label": "^0.1.0", + "@swc-jotai/debug-label": "^0.1.1", "@types/node": "^20.11.17", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", @@ -101,7 +101,7 @@ "@typescript-eslint/eslint-plugin": "^7.10.0", "@typescript-eslint/parser": "^7.10.0", "@unocss/eslint-config": "^0.60.3", - "@vitejs/plugin-react": "^4.3.0", + "@vitejs/plugin-react": "^4.3.1", "@vitejs/plugin-react-swc": "^3.7.0", "autoprefixer": "^10.4.19", "browserslist": "^4.23.0", @@ -130,4 +130,4 @@ "unocss-preset-autoprefixer": "^0.0.7", "vite": "^5.2.13" } -} +} \ No newline at end of file diff --git a/packages/react/vite.config.ts b/packages/react/vite.config.ts index 3c0f831a3..2d2a703d2 100644 --- a/packages/react/vite.config.ts +++ b/packages/react/vite.config.ts @@ -1,8 +1,8 @@ import { defineConfig, PluginOption } from "vite"; // Faster React using swc apparently, but can't use it atm. -import react from "@vitejs/plugin-react"; -// import react from "@vitejs/plugin-react-swc"; //currently borked. +// import react from "@vitejs/plugin-react"; +import react from "@vitejs/plugin-react-swc"; //currently borked. /* sadly broken due to https://github.com/pmndrs/swc-jotai/issues/22 */ import yaml from "@rollup/plugin-yaml"; @@ -30,7 +30,7 @@ export default defineConfig({ "ffmpeg.min.js", ], output: { - experimentalMinChunkSize: 10000, + experimentalMinChunkSize: 30000, }, }, }, @@ -67,13 +67,10 @@ export default defineConfig({ port: 9821, }) as unknown as PluginOption, react({ - babel: { - presets: ["jotai/babel/preset"], - }, - // plugins: [ - // /* ["@swc-jotai/debug-label", {}] - // sadly broken due to https://github.com/pmndrs/swc-jotai/issues/22 */ - // ], + // babel: { + // presets: ["jotai/babel/preset"], + // }, + plugins: [["@swc-jotai/debug-label", {}]], }), UnoCSS({ presets: [presetIcons()] }), yaml() as unknown as PluginOption,