BlogDocs

feat!: remove the constraint on packages exports `default` must be the last one(#171)

Merged
Merging
esm-exports-last
(
10110b2
) into
main
(
e1713c5
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
2
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

resolver[multi-thread]
benches/resolver.rs::resolver::bench_resolver::resolver[multi-thread]
0%
511.2 µs
509.8 µs
resolver[single-thread]
benches/resolver.rs::resolver::bench_resolver::resolver[single-thread]
0%
473.5 µs
473.6 µs

Commits

Click on a commit to change the comparison range
base
main
e1713c5
0%
feat!: remove the constraint on packages exports `default` must be the last one closes #160 The spec never mentioned the logic where "default" must be last or it should throw an error. https://nodejs.org/api/esm.html#resolution-and-loading-algorithm `enhanced-resolve` took the meaning from https://nodejs.org/docs/v20.13.1/api/packages.html#conditional-exports "This condition should always come last." This statement is not part of the specification, it is a recommendation.
10110b2
5 months ago
by Boshen
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.