-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CLI path resolution inconsistent for entry files and -e|--entry vs. -r|--require #1219
Comments
I believe That said, this is method is kinda gnarly, and I should really take some time to clean it up. |
@terinjokes Thanks for the reply. I'm not sure I see the distinction -- shouldn't they both just be resolved to a module file starting from some base dir (the same one in the case of these examples)? Unless there's a good reason to do otherwise it seems like it would be ideal for them to perform consistently in terms of the input they can take and how they resolve it to a file. No? |
@jmm I was hoping our mysterious leader would come by and comment about why they do different things. 😉 |
@terinjokes Ah, got it, sounds good. |
It's difficult to do both operations in a single step. Sometimes you can If you have these files:
Then the string Resolving the path in |
Thanks for explaining that @substack. I see what you guys mean, and that totally makes sense if the 80% case for |
In browserify 9.0.8 CLI on linux path arguments are resolved inconsistently for entry files /
-e
/--entry
vs-r
/--required
. Seems counterintuitive. Is there a reason to resolve them differently? Note: triggering it doesn't require anexpose
argument for the-r
files.The text was updated successfully, but these errors were encountered: