Commit 576adaa
committed
refactor(build): simplify alias plugin to single regexp handler
Consolidated two separate onResolve handlers into one using a unified
regexp pattern that matches both exact package imports and subpath
imports with (/|$). This reduces code complexity while maintaining
the same functionality for local package alias resolution.1 parent f43cd86 commit 576adaa
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
49 | 45 | | |
50 | | - | |
| 46 | + | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
0 commit comments