GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: stabilize packages features · nodejs/node@a7da993

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • packages.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/packages.md‎

Copy file name to clipboardExpand all lines: doc/api/packages.md
-16Lines changed: 0 additions & 16 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,6 @@ absolute subpath of the package such as
252252

253253
### Subpath exports
254254

255-
> Stability: 1 - Experimental
256-
257255
When using the [`"exports"`][] field, custom subpaths can be defined along
258256
with the main entry point by treating the main entry point as the
259257
`"."` subpath:
@@ -284,8 +282,6 @@ import submodule from 'es-module-package/private-module.js';
284282

285283
### Subpath imports
286284

287-
> Stability: 1 - Experimental
288-
289285
In addition to the [`"exports"`][] field, it is possible to define internal
290286
package import maps that only apply to import specifiers from within the package
291287
itself.
@@ -369,8 +365,6 @@ targets, this expansion is dependent on only the files of the package itself.
369365

370366
### Exports sugar
371367

372-
> Stability: 1 - Experimental
373-
374368
If the `"."` export is the only export, the [`"exports"`][] field provides sugar
375369
for this case being the direct [`"exports"`][] field value.
376370

@@ -395,8 +389,6 @@ can be written:
395389

396390
### Conditional exports
397391

398-
> Stability: 1 - Experimental
399-
400392
Conditional exports provide a way to map to different paths depending on
401393
certain conditions. They are supported for both CommonJS and ES module imports.
402394

@@ -475,8 +467,6 @@ order to support packages with conditional exports. For this reason, using
475467

476468
### Nested conditions
477469

478-
> Stability: 1 - Experimental
479-
480470
In addition to direct mappings, Node.js also supports nested condition objects.
481471

482472
For example, to define a package that only has dual mode entry points for
@@ -904,8 +894,6 @@ changes:
904894
description: Unflag `--experimental-modules`.
905895
-->
906896

907-
> Stability: 1 - Experimental
908-
909897
* Type: {string}
910898

911899
The `"type"` field defines the module format that Node.js uses for all
@@ -972,8 +960,6 @@ changes:
972960
description: Implement conditional exports.
973961
-->
974962

975-
> Stability: 1 - Experimental
976-
977963
* Type: {Object} | {string} | {string[]}
978964

979965
```json
@@ -1000,8 +986,6 @@ All paths defined in the `"exports"` must be relative file URLs starting with
1000986
added: v14.6.0
1001987
-->
1002988

1003-
> Stability: 1 - Experimental
1004-
1005989
* Type: {Object}
1006990

1007991
```json

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.