Avatar for the oxc-project user
oxc-project
oxc-resolver
BlogDocsChangelog

feat: support wildcard `*` in alias plugin

#388Merged
Comparing
alias-wildcard
(
98bd74e
) with
main
(
1b0b122
)
CodSpeed Performance Gauge
-12%
Improvements
0
Regressions
3
Untouched
0
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

resolver[multi-thread]Regression
benches/resolver.rs::resolver::bench_resolver::resolver[multi-thread]
CodSpeed Performance Gauge
-7%
443.3 µs
477.4 µs
resolver[resolve from symlinks]Regression
benches/resolver.rs::resolver::bench_resolver::resolver[resolve from symlinks]
CodSpeed Performance Gauge
-12%
51.7 ms
58.7 ms
resolver[single-thread]Regression
benches/resolver.rs::resolver::bench_resolver::resolver[single-thread]
CodSpeed Performance Gauge
-6%
420.6 µs
446 µs

Commits

Click on a commit to change the comparison range
Base
main
1b0b122
-11%
feat: support wildcard `*` in alias plugin ``` alias: { '@*': path.resolve(__dirname, 'src/*'), // maps @something to path/to/something } ``` Ported from https://github.com/webpack/enhanced-resolve/pull/439 Please note there is a small behaviour difference when compared to TypeScript's path alias resolve: In TypeScript, when multiple patterns match a module specifier, the pattern with the longest matching prefix before any * token is used: https://www.typescriptlang.org/docs/handbook/modules/reference.html#wildcard-substitutions In enhanced-resolved's alias plugin, first match alias key (in declaration order) wins. closes #385 closes #386
9c9b362
2 months ago
by Boshen
0%
perf
98bd74e
2 months ago
by Boshen
© 2025 CodSpeed Technology
Home Terms PrivacyDocs