Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions src/content/guides/package-exports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -145,24 +145,24 @@ Example: `{ "./a/": "./x/", "./a/b/": "./y/", "./a/b/c": "./z" }` == `{ "./a/b/c

## Support

| Feature | Supported by |
| -------------------------------------- | ---------------------------------------------------------------------------------- |
| `"."` property | Node.js, webpack, rollup, esinstall, wmr |
| normal property | Node.js, webpack, rollup, esinstall, wmr |
| property ending with `/` | Node.js<sup>(1)</sup>, webpack, rollup, esinstall<sup>(2)</sup>, wmr<sup>(3)</sup> |
| property ending with `*` | Node.js, webpack, rollup, esinstall |
| Alternatives | Node.js, webpack, rollup, <strike>esinstall</strike><sup>(4)</sup> |
| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr |
| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr |
| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr |
| Nested conditional syntax | Node.js, webpack, rollup, wmr<sup>(5)</sup> |
| Conditions Order | Node.js, webpack, rollup, wmr<sup>(6)</sup> |
| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr |
| Path Order | Node.js, webpack, rollup |
| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr<sup>(7)</sup> |
| Error when mixing conditions and paths | Node.js, webpack, rollup |

(1) deprecated in Node.js, `*` should be preferred.
| Feature | Supported by |
| -------------------------------------- | -------------------------------------------------------------------------------------- |
| `"."` property | Node.js, webpack, rollup, esinstall, wmr |
| normal property | Node.js, webpack, rollup, esinstall, wmr |
| property ending with `/` | ~~Node.js<sup>(1)</sup>~~, webpack, rollup, esinstall<sup>(2)</sup>, wmr<sup>(3)</sup> |
| property ending with `*` | Node.js, webpack, rollup, esinstall |
| Alternatives | Node.js, webpack, rollup, <strike>esinstall</strike><sup>(4)</sup> |
| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr |
| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr |
| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr |
| Nested conditional syntax | Node.js, webpack, rollup, wmr<sup>(5)</sup> |
| Conditions Order | Node.js, webpack, rollup, wmr<sup>(6)</sup> |
| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr |
| Path Order | Node.js, webpack, rollup |
| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr<sup>(7)</sup> |
| Error when mixing conditions and paths | Node.js, webpack, rollup |

(1) Removed in Node.js 17. Use `*` instead.

(2) `"./"` is intentionally ignored as key.

Expand Down