Boshen
814f71c15e
feat(resolver): add tracing-subscriber feature ( #904 )
2023-09-13 16:36:24 +08:00
Boshen
5bbad73db5
feat(resolver): tsconfig project references ( #862 )
...
closes #751
2023-09-07 14:01:48 +08:00
Boshen
aa7b665fe9
feat(resolver): add thiserror ( #847 )
2023-09-03 14:50:31 +08:00
Boshen
1bc1418ee6
feat(resolver): implement nested alias field ( #795 )
2023-08-25 22:32:57 +08:00
Boshen
6ab4ce0a6b
feat(resolver): implement tsconfig-paths ( #750 )
...
This PR includes 3 core functinalies of tsconfig-paths:
* matching tsconfig.compilerOptions.paths
* use tsconfig.compilerOptions.baseUrl
* extend tsconfig with tsconfig.extends
This PR does not include tsconfig.references
2023-08-17 16:24:46 +08:00
Boshen
f6e3b654b1
feat(resolver): implement configurable exports_fields option ( #733 )
2023-08-14 10:18:57 +08:00
Boshen
11954326b3
feat(resolver): implement main_fields
2023-08-10 19:48:30 +08:00
Boshen
909d037f0d
refactor(resolver): clean up some code and tests
2023-08-09 23:21:03 +08:00
Boshen
9b2d3fce6b
feat(resolver): implement resolveToContext ( #694 )
2023-08-07 14:30:32 +08:00
Boshen
59f5dc1906
feat(resolver): implement restrictions (path only) ( #693 )
2023-08-07 13:50:42 +08:00
Boshen
d21307827d
feat(resolver): implement fully specified ( #687 )
...
This is for turning off ESM's forced extension functionality.
2023-08-04 17:50:43 +08:00
Boshen
702d5b0120
refactor(resolver): change internal funcs to non-pub by moving to unit tests ( #682 )
2023-08-02 16:24:16 +08:00
Boshen
2e3934db49
feat(resolver): imports field ( #681 )
2023-08-02 15:54:07 +08:00
Boshen
c4669e1f78
feat(resolver): finish most of exports field ( #674 )
...
Found a behaviour mismatch: when an array is provided in exports field,
enhanced-resolve will try to read the file and try the next one if it
fails. But in the spec, the path is not read, it's only tested against
"invalid package target".
```
For each item targetValue in target, do
1. Let resolved be the result of PACKAGE_TARGET_RESOLVE( packageURL, targetValue, patternMatch, isImports, conditions), continuing the loop on any Invalid Package Target error.
2. If resolved is undefined, continue the loop.
3. Return resolved.
```
I tested against node.js and verifies node.js conforms to the spec.
2023-08-01 15:53:31 +08:00
Boshen
3b9cc474e9
feat(resolver): port the rest of the exports field tests ( #659 )
2023-07-30 01:03:10 +08:00
Boshen
cfdeb3416d
chore(resolver): improve documentation ( #591 )
2023-07-23 18:48:51 +08:00
Boshen
585e48fe9b
feat(resolver): implement symlinks ( #582 )
2023-07-21 19:10:59 +08:00
Boshen
fa20844802
feat(resolver): complete query and fragment parsing ( #579 )
2023-07-20 17:48:51 +08:00
Boshen
30b9731843
feat(resolver): add preferRelative and preferAbsolute ( #577 )
2023-07-20 15:41:06 +08:00
Boshen
beb0ae9d8e
feat(resolver): implement roots ( #576 )
2023-07-20 14:23:25 +08:00
Boshen
3f07306be0
feat(resolver): implement fallback ( #572 )
2023-07-19 14:42:43 +08:00
Boshen
c32dd32bad
feat(resolver): implement enforceExtension ( #566 )
2023-07-18 15:05:02 +08:00
Boshen
e5de977279
feat(resolver): implement descriptionFiles option ( #565 )
2023-07-18 14:11:43 +08:00
Boshen
0c17f4f783
feat(resolver): implement the basics of path alias ( #564 )
2023-07-18 13:30:14 +08:00
Boshen
d410d1a2d7
feat(resolver): accept different file system implementations ( #562 )
2023-07-17 18:29:41 +08:00
Boshen
cac4e73461
feat(resolver): implement browser field ( #561 )
2023-07-17 15:16:08 +08:00
Boshen
b2152ec050
feat(resolver): implement scoped packages ( #558 )
2023-07-16 20:36:47 +08:00
Boshen
e0a17ace8f
feat(resolver): port incorrect description file test ( #557 )
2023-07-16 17:13:32 +08:00
Boshen
05c9b5dfd8
feat(resolver): implement extension_alias ( #556 )
2023-07-16 16:39:51 +08:00
Boshen
2375bc8ccc
feat(resolver): port resolve tests ( #555 )
2023-07-16 15:09:09 +08:00
Boshen
fda6d83712
feat(resolver): resolve extensions ( #549 )
2023-07-14 23:25:47 +08:00
Boshen
a9debc9fdb
feat(resolver): add resolver test fixtures ( #542 )
2023-07-13 13:37:29 +08:00