@@ -252,8 +252,6 @@ absolute subpath of the package such as
252
252
253
253
### Subpath exports
254
254
255
- > Stability: 1 - Experimental
256
-
257
255
When using the [ ` "exports" ` ] [ ] field, custom subpaths can be defined along
258
256
with the main entry point by treating the main entry point as the
259
257
` "." ` subpath:
@@ -284,8 +282,6 @@ import submodule from 'es-module-package/private-module.js';
284
282
285
283
### Subpath imports
286
284
287
- > Stability: 1 - Experimental
288
-
289
285
In addition to the [ ` "exports" ` ] [ ] field, it is possible to define internal
290
286
package import maps that only apply to import specifiers from within the package
291
287
itself.
@@ -371,8 +367,6 @@ targets, this expansion is dependent on only the files of the package itself.
371
367
372
368
### Exports sugar
373
369
374
- > Stability: 1 - Experimental
375
-
376
370
If the ` "." ` export is the only export, the [ ` "exports" ` ] [ ] field provides sugar
377
371
for this case being the direct [ ` "exports" ` ] [ ] field value.
378
372
@@ -397,8 +391,6 @@ can be written:
397
391
398
392
### Conditional exports
399
393
400
- > Stability: 1 - Experimental
401
-
402
394
Conditional exports provide a way to map to different paths depending on
403
395
certain conditions. They are supported for both CommonJS and ES module imports.
404
396
@@ -477,8 +469,6 @@ order to support packages with conditional exports. For this reason, using
477
469
478
470
### Nested conditions
479
471
480
- > Stability: 1 - Experimental
481
-
482
472
In addition to direct mappings, Node.js also supports nested condition objects.
483
473
484
474
For example, to define a package that only has dual mode entry points for
@@ -906,8 +896,6 @@ changes:
906
896
description: Unflag ` --experimental-modules` .
907
897
-->
908
898
909
- > Stability: 1 - Experimental
910
-
911
899
* Type: {string}
912
900
913
901
The ` "type"` field defines the module format that Node .js uses for all
@@ -974,8 +962,6 @@ changes:
974
962
description: Implement conditional exports .
975
963
-->
976
964
977
- > Stability: 1 - Experimental
978
-
979
965
* Type: {Object } | {string} | {string[]}
980
966
981
967
` ` ` json
@@ -1002,8 +988,6 @@ All paths defined in the `"exports"` must be relative file URLs starting with
1002
988
added: v14.6 .0
1003
989
-->
1004
990
1005
- > Stability: 1 - Experimental
1006
-
1007
991
* Type: {Object }
1008
992
1009
993
` ` ` json
0 commit comments