Skip to content

Commit 13bdcad

Browse files
committed
Widens tsconfig include to nested component TS
Extends the include glob so nested component sources (alpha/, beta/, open_project/) are matched, and excludes generated .d.ts files that would otherwise conflict with their sources. Fixes the Vite dev server in the demo app: its per-file tsconfig resolution honours include patterns, so unmatched files were transformed without experimentalDecorators. Catalyst @controller decorators then reached the browser untransformed, aborting the whole JS module graph - no custom elements were registered and ActionMenu overlays rendered as static in-flow content.
1 parent a0cde77 commit 13bdcad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@
1818
"types": [],
1919
},
2020
"include": [
21-
"app/components/primer/*.ts",
21+
"app/components/primer/**/*.ts",
2222
"app/lib/primer/forms/*.ts"
2323
],
2424
"exclude": [
25+
"**/*.d.ts",
2526
"demo/**/*",
2627
"vendor/**/*"
2728
]

0 commit comments

Comments
 (0)