Skip to content

Commit 3b9b445

Browse files
Copilotrajbos
andauthored
docs: add explanatory comments for dependency compatibility workarounds
Agent-Logs-Url: https://github.com/xebia/github-copilot-premium-reqs-usage/sessions/c52c160a-59a0-4df8-bebb-c23200b4428f Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent dfb0b97 commit 3b9b445

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
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": {

vite.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

vite.github-pages.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)