-
Notifications
You must be signed in to change notification settings - Fork 77
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
Don't override other plugins file.defineModuleOptions #60
Comments
file.defineModuleOptions
@lfbittencourt Thanks for the clear and thorough issue report. I totally understand what you're saying, I'll get a fix in for this soon. |
@lfbittencourt can you try my fix for this issue by running these commands and report back? npm remove gulp-handlebars
npm install git://github.com/lazd/gulp-handlebars.git#issue/60 Then, try your build and see if the module definition happens as expected. I wasn't sure what to do with the |
Thanks! I'll come back here as soon as I have tested it :-) |
Sounds like a plan, thanks for testing @lfbittencourt! |
I will try to be short and describe an issue I've faced here...
I precompile my Handlebars templates as AMD modules. In this templates, I have calls to custom helpers I've created. As I keep these helpers as AMD modules too, it would be nice parse that templates, find any custom helper call and inject them as dependencies to the precompiled module. Phew!
Why can't I do that? Because any
file.defineModuleOptions.require
I have is overwritten in https://github.com/lazd/gulp-handlebars/blob/master/index.js#L52.Here you can see
gulp-define-module
author showing a way we can be sure we don't override other plugins. Does it make sense for you?Thanks!
The text was updated successfully, but these errors were encountered: