-
Notifications
You must be signed in to change notification settings - Fork 112
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
closure_js_template_library.should_provide_require_soy_namespaces does nothing #381
Comments
The documentation should be removed. |
robfig
pushed a commit
to robfig/rules_closure
that referenced
this issue
Jun 4, 2019
…ToJsSrcCompiler This also removes the vestigial `should_provide_require_soy_namespaces` Fixes bazelbuild#381
I also removed the old |
robfig
pushed a commit
to robfig/rules_closure
that referenced
this issue
Jun 5, 2019
…ToJsSrcCompiler This also removes the vestigial `should_provide_require_soy_namespaces` Fixes bazelbuild#381
ptmphuong
pushed a commit
to ptmphuong/rules_closure
that referenced
this issue
Dec 9, 2022
…ToJsSrcCompiler (bazelbuild#386) This also removes the vestigial `should_provide_require_soy_namespaces` Fixes bazelbuild#381
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using
closure_js_template_library
with an application that uses closure modules, so I need the generated code to usegoog.provide
/goog.require
. The documentation says thatshould_provide_require_soy_namespaces
is passed through to the compiler, but in fact it does nothing because SoyToJsSrcCompiler had that flag removed at some point.That sounds ok, except I'm overriding it with a version of Soy that is a year or two old, and I can't update without fixing the various backwards incompatibilities that were introduced since then. The compiler I'm using still has that flag, and it defaults to false, so it's not possible for me to proceed without making some sort of change.
I wanted to ask if you would be open to a generic
args
parameter that acts as a passthrough to the compiler? This would solve this case as well as possible future cases when the flags change. There are also a good number of flags, so it's not infeasible to think that there are other valid use cases for wanting to get at them.Either way, I think it's worth updating the documentation on this parameter or possibly removing it entirely. I can do that if you give me a green light to make the pull request described above.
Thanks
https://github.com/bazelbuild/rules_closure#closure_js_template_library
The text was updated successfully, but these errors were encountered: