Skip to content

central issue for "default extensions" #166

Open

Description

@ljharb

This issue encompasses anything that deals with "what the default extensions are/should be".

There's some PRs out that are hoping to change the defaults:

I'm opening this so I can close the other issues, and so any further discussion can happen here.

Please try to read all of the previous discussions before commenting.

Activity

  1. snuggs commented on Jul 11, 2018

    @snuggs

    @ljharb well done! I'm subscribed and have my eyes peeled. Seems like as I predicted last year there will be more eyeballs looking in the require.extensions direction.

    This is a great synopsis but even myself remember you had made a couple suggestions. I wonder what they are currently (especially with the new .mjs extension add we've been working on with IETF. This way I can see where I can help and take some concerns off your plate.

    Thoughts?

  2. ljharb commented on Jul 11, 2018

    @ljharb
    MemberAuthor

    As it relates to .mjs, resolve will absolutely add it to the default extension list the instant node ships it unflagged - but not before (that will also be when it's present in require.extensions in node).

  3. snuggs commented on Jul 11, 2018

    @snuggs

    @ljharb sounds like a plan! Any ref we can use to stick in the description / comment to watchdog?

    Seems like you know better than me. I've merely been judging off PTSD of the community and in the classrooms. :-|

    FWIW I'm totally against .mjs and believe it creates some unnecessary social fractures within the ecosystem but that's just my opinion not the community at large's.

  4. ljharb commented on Jul 11, 2018

    @ljharb
    MemberAuthor

    A file extension is strictly necessary, since Module and Script have distinct (and ambiguous) parsing goals, and a file extension is the proper and sole way to disambiguate textual parsing goals - so this result was inevitable once the choice of two parse goals was made in TC39 back in 2013 or so.

  5. snuggs commented on Jul 11, 2018

    @snuggs
  6. ljharb commented on Jul 12, 2018

    @ljharb
    Author
  7. snuggs commented on Jul 12, 2018

    @snuggs
  8. ljharb commented on Jul 12, 2018

    @ljharb
    Author
  9. snuggs commented on Jul 12, 2018

    @snuggs
  10. ljharb commented on Jul 12, 2018

    @ljharb
    Author
  11. snuggs commented on Jul 12, 2018

    @snuggs
  12. ljharb commented on Jul 12, 2018

    @ljharb
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions