Stability: 1 - Experimental

    If the "." export is the only export, the ["exports"][] field provides sugar for this case being the direct ["exports"][] field value.

    If the "." export has a fallback array or string value, then the ["exports"][] field can be set to this value directly.

    1. {
    2. "exports": {
    3. ".": "./main.js"
    4. }
    5. }

    can be written:

    1. {
    2. "exports": "./main.js"
    3. }