feat: add dynamic @src alias resolution for consuming apps#158
feat: add dynamic @src alias resolution for consuming apps#158arbrandes wants to merge 1 commit intoopenedx:mainfrom
Conversation
00769a8 to
8e2b869
Compare
8e2b869 to
c60f221
Compare
|
I asked ChatGPT to take a look at the diff (I was wondering if there was a simpler way to handle this we were missing). It didn't find a simpler way, but it did make a few suggestions: SummaryThis plugin seems justified — webpack aliases are static and can’t resolve
No built-in enhanced-resolve plugin seems to provide “closest ancestor src wins”, so this approach makes sense overall.
|
Description
Replace static @src webpack alias with ClosestSrcResolverPlugin that dynamically resolves @src to the nearest src directory from the importing file. Each consuming app now defines its own @src path in tsconfig.json for TypeScript/IDE support.
LLM usage notice
Created with assistance from Claude Opus 4.5 (session log).