-
-
Notifications
You must be signed in to change notification settings - Fork 306
Description
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