Commit 3ccdd0c
LessJS Bot
fix(adapter-vite): auto-generate aliases in less:core config hook (Phase 1)
Phase 1's virtual:less-hono-entry also needs @lessjs/* resolution.
Add auto-generated workspace aliases in the config hook so ALL three
phases benefit from a single generation point.
- config hook now async, auto-generates aliases when user has none
- Stores aliases in ctx.userResolveAlias for Phase 2/3
- Phase 2/3 fallback generation preserved for defense in depth1 parent 24a6e60 commit 3ccdd0c
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
296 | 314 | | |
297 | 315 | | |
| 316 | + | |
298 | 317 | | |
299 | 318 | | |
300 | 319 | | |
| |||
0 commit comments