Skip to content

Commit 627568f

Browse files
fix: add TypeScript path mappings for workspace dependencies
Add explicit TypeScript path mappings in tsconfig.json to help the TypeScript compiler resolve workspace dependencies during CI builds. This should resolve the module resolution issues in stricter CI environments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 839a407 commit 627568f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

packages/rsbuild-plugin/tsconfig.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@
1414
"skipLibCheck": true,
1515
"skipDefaultLibCheck": true,
1616
"declaration": true,
17-
"noImplicitAny": false
17+
"noImplicitAny": false,
18+
"paths": {
19+
"@module-federation/sdk": ["../sdk/src/index.ts"],
20+
"@module-federation/sdk/*": ["../sdk/src/*"],
21+
"@module-federation/enhanced": ["../enhanced/src/index.ts"],
22+
"@module-federation/enhanced/*": ["../enhanced/src/*"],
23+
"@module-federation/node": ["../node/src/index.ts"],
24+
"@module-federation/node/*": ["../node/src/*"]
25+
}
1826
},
1927
"files": [],
2028
"include": [],

0 commit comments

Comments
 (0)