File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 /* Linting */
2121 "noFallthroughCasesInSwitch" : true ,
2222 "noUncheckedSideEffectImports" : true ,
23+ // Required for TypeScript 6.0: baseUrl is deprecated in TS6 but still needed for path aliases.
24+ // Remove when migrating to moduleResolution: "bundler" with explicit path mappings.
2325 "ignoreDeprecations" : " 6.0" ,
2426 "baseUrl" : " ." ,
2527 "paths" : {
Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ export default defineConfig({
6060 ] )
6161 ) ,
6262 } ,
63+ // Workaround: Tailwind CSS 4.x generates CSS patterns (e.g. @media container queries) that
64+ // lightningcss (Vite 8's default CSS minifier) cannot parse. errorRecovery allows the build
65+ // to succeed by skipping unrecognised CSS rather than failing. Monitor lightningcss/Tailwind
66+ // releases for when this can be removed.
6367 css : {
6468 lightningcss : {
6569 errorRecovery : true ,
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ export default defineConfig({
3232 react ( ) ,
3333 tailwindcss ( ) ,
3434 ] ,
35+ // Workaround: Tailwind CSS 4.x generates CSS patterns (e.g. @media container queries) that
36+ // lightningcss (Vite 8's default CSS minifier) cannot parse. errorRecovery allows the build
37+ // to succeed by skipping unrecognised CSS rather than failing. Monitor lightningcss/Tailwind
38+ // releases for when this can be removed.
3539 css : {
3640 lightningcss : {
3741 errorRecovery : true ,
You can’t perform that action at this time.
0 commit comments