Skip to content

Tape does not pass require.extensions to resolve #395

@snuggs

Description

@snuggs

We are currently using the legacy .es ECMAScript file extension. How we are using this is by appending a .es key to require.extensions. Have discussed with members of node and this has been converted into a public API since ffa503a which introduced resolve into tape. However, resolve will not use the default require .extensions see https://github.com/browserify/resolve/blob/5f6e682396eca043624d0a13286b9015b1e6cfce/lib/sync.js#L23 . Already have a commit that merely adds { extensions: require.extensions } to the call to resolve. Please let me know if I should be opening an issue on tape (preferred) or in resolve (possibly should do this as well). Since they have a mechanism to change extensions I feel will be a great start here. Will notify resolve team as well. At the current state have no way to alter resolve and no way to alter what tape sends to resolve. Thanks in advance!

Thanks in advance. /cc @brandondees

capture d ecran 2017-09-21 a 17 34 32

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