Commit 45be6af
RoomWithOutRoof
doc: add guidance on using node/default conditions for dual packages
As an alternative to using "import"/"require" conditions, packages can use
"node"/"default" conditions to avoid the dual package hazard while still
providing ES modules for non-Node.js environments.
This addresses issue #52174.1 parent d0fa608 commit 45be6af
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
723 | 741 | | |
724 | 742 | | |
725 | 743 | | |
| |||
0 commit comments