Commit be288ba
authored
feat!: remove the constraint on packages exports
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.default must be the last one (#171)1 parent e1713c5 commit be288ba
3 files changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1512 | 1512 | | |
1513 | 1513 | | |
1514 | 1514 | | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
| 1515 | + | |
1526 | 1516 | | |
1527 | | - | |
| 1517 | + | |
1528 | 1518 | | |
1529 | 1519 | | |
1530 | 1520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
817 | | - | |
| 817 | + | |
818 | 818 | | |
819 | 819 | | |
820 | 820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
| |||
0 commit comments