Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Support .mjs files by default. #151

Merged
merged 1 commit into from May 16, 2018
Merged

Commits on Mar 29, 2018

  1. Support .mjs files by default.

    Since rollup prefers ESM formatted modules, it should look for node's new .mjs file extension before looking for .js files by default. This offers support for deployed modules intended to be used in node's ESM mode.
    
    Folks can work around this today by manually supplying the `extensions` option, however it would be great if this worked by default.
    
    Note that looking for `.mjs` before `.js` is important for rollup which prefers ESM, however the `resolve` dependency should not use the same order by default since it is used in many other tools which do not yet support ESM or would not expect it by default.
    
    Encountered this as the root cause behind graphql/graphql-js#1293
    leebyron committed Mar 29, 2018
    Copy the full SHA
    f711ab2 View commit details
    Browse the repository at this point in the history