-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tape does not pass require.extensions
to resolve
#395
Comments
I think I agree that it makes sense for |
See #396 (comment) for why this isn't the proper fix. Perhaps an |
@ljharb I understand this is common misconception. But the facts are this has not only been considered as a file extension but speced and thoroughly documented in I've also taken the liberty to document this on MDN and ad nauseam in the snuggsiツ library Also has long been the standard extension as far as Wikipedia is concerned. Do you believe we should update the docs? Am open if you suggest but it will be a long journey, trust. Can also link you to a lengthy deliberation on the matter with the W3C and WHATWG. Please trust I trust you'd understand as someone who is a prolific contributor to OSS that I would not waste your time with Please advise. |
I'm aware that It's superfluous to the request, but I didn't want future readers to assume that |
@ljharb Totally! And thanks for making me aware of that. Our future selves are just as important to take into consideration. I'm actually documenting this over at the WHATWG. https://github.com/whatwg/meta/pull/40/files#diff-16d8907348d1a44d1fe4803d38be499eR33 |
Well... We've been here before](https://mail.mozilla.org/pipermail/es-discuss/2011-August/016267.html) I'd be curious what Brendan and Douglas have to say about "optimisim". They were one of the first pumping the "optimism" with I either have to tell them they can use tape or not. If i tell them to not use it I'm the one that recommended it. It's really that simple for me. I'm a loyal user. They could care less. If it doesn't support legacy or do what it says it's going to do I have to report this. Hope this clears things up. Also clears up in retrospect this may be the wrong library to make these statements. |
Here are the choices that can be made for tape:
My preference is option 2 for now, and if the common use case becomes "always pass require.extensions", then option 3 would be sufficiently motivated. @snuggs, does option 2 seem like it would address your use case? |
@ljharb hey man just here to help :-) Whatever keeps us moving forward and in the game! I just know if it's going to come up for me it will come up for some (few) others. Best to be aware sooner than later. The fact you are even considering to do something says a lot. I'm open for ANYTHING as we have nothing currently. YES this IS a "leaky abstraction" of underlying implementation details with Tape. But not like we are forcing people to use the flag anyways. May be our best bet. Thoughts? |
Great - I'll think about how to implement this, so at least there's a path forward without a breaking change. |
@ljharb i'm on board...and here to help. As a maintainer myself I understand the pain when someone requests a breaking change. P.S. Thank you tape for helping us kick butt with async tests :-) #homage |
We are currently using the legacy
.es
ECMAScript file extension. How we are using this is by appending a.es
key torequire.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 defaultrequire
.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 ontape
(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
The text was updated successfully, but these errors were encountered: