File tree Expand file tree Collapse file tree 6 files changed +139
-94
lines changed
packages/plugin-rsc/examples Expand file tree Collapse file tree 6 files changed +139
-94
lines changed Original file line number Diff line number Diff line change 1616 "react-dom" : " ^19.2.4"
1717 },
1818 "devDependencies" : {
19- "@tailwindcss/vite" : " ^4.1.18 " ,
19+ "@tailwindcss/vite" : " ^4.2.1 " ,
2020 "@types/react" : " ^19.2.14" ,
2121 "@types/react-dom" : " ^19.2.3" ,
2222 "@vitejs/plugin-react" : " latest" ,
3030 "@vitejs/test-dep-transitive-cjs" : " file:./test-dep/transitive-cjs" ,
3131 "@vitejs/test-dep-transitive-use-sync-external-store" : " file:./test-dep/transitive-use-sync-external-store" ,
3232 "rsc-html-stream" : " ^0.0.7" ,
33- "tailwindcss" : " ^4.1.18 " ,
33+ "tailwindcss" : " ^4.2.1 " ,
3434 "vite" : " ^8.0.0-beta.16" ,
3535 "wrangler" : " ^4.67.0"
3636 },
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ export default defineConfig({
1919 plugins : [
2020 // import("vite-plugin-inspect").then(m => m.default()),
2121 tailwindcss ( ) ,
22+ {
23+ // TODO: quick workaround for https://github.com/tailwindlabs/tailwindcss/pull/19670
24+ name : 'fix-tailwind-full-reload' ,
25+ configResolved ( config ) {
26+ const plugin = config . plugins . find (
27+ ( p ) => p . name === '@tailwindcss/vite:generate:serve' ,
28+ )
29+ delete plugin ?. hotUpdate
30+ } ,
31+ } ,
2232 react ( ) ,
2333 vitePluginUseCache ( ) ,
2434 vitePluginVirtualModuleTest ( ) ,
Original file line number Diff line number Diff line change @@ -12,6 +12,16 @@ export default defineConfig({
1212 plugins : [
1313 // import("vite-plugin-inspect").then(m => m.default()),
1414 tailwindcss ( ) ,
15+ {
16+ // TODO: quick workaround for https://github.com/tailwindlabs/tailwindcss/pull/19670
17+ name : 'fix-tailwind-full-reload' ,
18+ configResolved ( config ) {
19+ const plugin = config . plugins . find (
20+ ( p ) => p . name === '@tailwindcss/vite:generate:serve' ,
21+ )
22+ delete plugin ?. hotUpdate
23+ } ,
24+ } ,
1525 react ( ) ,
1626 rsc ( {
1727 entries : {
Original file line number Diff line number Diff line change 2020 "devDependencies" : {
2121 "@cloudflare/vite-plugin" : " ^1.25.2" ,
2222 "@tailwindcss/typography" : " ^0.5.19" ,
23- "@tailwindcss/vite" : " ^4.1.18 " ,
23+ "@tailwindcss/vite" : " ^4.2.1 " ,
2424 "@types/react" : " ^19.2.14" ,
2525 "@types/react-dom" : " ^19.2.3" ,
2626 "@vitejs/plugin-react" : " latest" ,
2727 "@vitejs/plugin-rsc" : " latest" ,
28- "tailwindcss" : " ^4.1.18 " ,
28+ "tailwindcss" : " ^4.2.1 " ,
2929 "vite" : " ^8.0.0-beta.16" ,
3030 "wrangler" : " ^4.67.0"
3131 }
Original file line number Diff line number Diff line change @@ -11,6 +11,16 @@ export default defineConfig({
1111 plugins : [
1212 // import("vite-plugin-inspect").then(m => m.default()),
1313 tailwindcss ( ) ,
14+ {
15+ // TODO: quick workaround for https://github.com/tailwindlabs/tailwindcss/pull/19670
16+ name : 'fix-tailwind-full-reload' ,
17+ configResolved ( config ) {
18+ const plugin = config . plugins . find (
19+ ( p ) => p . name === '@tailwindcss/vite:generate:serve' ,
20+ )
21+ delete plugin ?. hotUpdate
22+ } ,
23+ } ,
1424 react ( ) ,
1525 rsc ( {
1626 entries : {
You can’t perform that action at this time.
0 commit comments