Skip to content

Commit c975ac8

Browse files
authored
docs(guides): Mention end of support for subpath mapping exports by Node > 17 (#7364)
* Mention end of support for subpath mapping exports by Node > 17 package-exports.mdx https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V17.md#2021-10-19-version-1700-current-bethgriggs * Move note from feature column to Supported by column
1 parent ff67024 commit c975ac8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/content/guides/package-exports.mdx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,24 @@ Example: `{ "./a/": "./x/", "./a/b/": "./y/", "./a/b/c": "./z" }` == `{ "./a/b/c
145145

146146
## Support
147147

148-
| Feature | Supported by |
149-
| -------------------------------------- | ---------------------------------------------------------------------------------- |
150-
| `"."` property | Node.js, webpack, rollup, esinstall, wmr |
151-
| normal property | Node.js, webpack, rollup, esinstall, wmr |
152-
| property ending with `/` | Node.js<sup>(1)</sup>, webpack, rollup, esinstall<sup>(2)</sup>, wmr<sup>(3)</sup> |
153-
| property ending with `*` | Node.js, webpack, rollup, esinstall |
154-
| Alternatives | Node.js, webpack, rollup, <strike>esinstall</strike><sup>(4)</sup> |
155-
| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr |
156-
| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr |
157-
| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr |
158-
| Nested conditional syntax | Node.js, webpack, rollup, wmr<sup>(5)</sup> |
159-
| Conditions Order | Node.js, webpack, rollup, wmr<sup>(6)</sup> |
160-
| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr |
161-
| Path Order | Node.js, webpack, rollup |
162-
| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr<sup>(7)</sup> |
163-
| Error when mixing conditions and paths | Node.js, webpack, rollup |
164-
165-
(1) deprecated in Node.js, `*` should be preferred.
148+
| Feature | Supported by |
149+
| -------------------------------------- | -------------------------------------------------------------------------------------- |
150+
| `"."` property | Node.js, webpack, rollup, esinstall, wmr |
151+
| normal property | Node.js, webpack, rollup, esinstall, wmr |
152+
| property ending with `/` | ~~Node.js<sup>(1)</sup>~~, webpack, rollup, esinstall<sup>(2)</sup>, wmr<sup>(3)</sup> |
153+
| property ending with `*` | Node.js, webpack, rollup, esinstall |
154+
| Alternatives | Node.js, webpack, rollup, <strike>esinstall</strike><sup>(4)</sup> |
155+
| Abbreviation only path | Node.js, webpack, rollup, esinstall, wmr |
156+
| Abbreviation only conditions | Node.js, webpack, rollup, esinstall, wmr |
157+
| Conditional syntax | Node.js, webpack, rollup, esinstall, wmr |
158+
| Nested conditional syntax | Node.js, webpack, rollup, wmr<sup>(5)</sup> |
159+
| Conditions Order | Node.js, webpack, rollup, wmr<sup>(6)</sup> |
160+
| `"default"` condition | Node.js, webpack, rollup, esinstall, wmr |
161+
| Path Order | Node.js, webpack, rollup |
162+
| Error when not mapped | Node.js, webpack, rollup, esinstall, wmr<sup>(7)</sup> |
163+
| Error when mixing conditions and paths | Node.js, webpack, rollup |
164+
165+
(1) Removed in Node.js 17. Use `*` instead.
166166

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

0 commit comments

Comments
 (0)