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
Feature: require URIs #1103
Comments
i think its a bad idea, also browserify is so flexible you can basically do all the things with it. if you want to get that feature into your bundle-pipeline just write a transform or plugin. for example take a look at https://github.com/substack/brfs - just fetch your file instead of reading from disk (like in brfs). then you could use it like that:
your plugin could even wrap the fetched code so you can make it export only the jquery-object, or you could provide an api like also i think i have even seen such a browserify-plugin on npm, its always worth 5 minutes to look if someone else already solved the problem :) edit: although with this approach (like brfs) it would put the string into your bundle multiple times if you |
This is proposing a change to how node's |
@jden I don't know how good of an idea the OP's suggestion is, but |
a plugin that does this would be great! i don't think it'll be good for core browserify. |
Wouldn't it be awesome if you could do:
and it would just work. That would be awesome!
I could see this as a definite possibility, but is this already a functionality supported by transforms (is there a project that is doing this already?)?
Also, discuss if this is even a good idea.
The text was updated successfully, but these errors were encountered: