-
Notifications
You must be signed in to change notification settings - Fork 524
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
Provide plugins list to rollup_bundle #532
Comments
Worked on a proof of concept by following the angular customization seen in https://github.com/mattjs/react-bazel I was able to get react with jsx bundled properly. Missing from the rollup config was the ability to declare externals
And other than that I just piped in plugins to |
I started going down this route of customizing the rollup rules for react, and then found that you can declare the externals via the
|
FYI, working on this now. See https://github.com/bazelbuild/rules_nodejs/pull/1072/files#diff-f378b9916f4e39bab74ea8151783ff88 |
It would be great if we were able to provide plugins to
rollup_bundle
to perform processing tasks with babel or other libraries.If I understand rollup_bundle.bzl correctly it might be possible to add a new attribute to
rollup_bundle
to pass a list of plugins towrite_rollup_config
I looked into some related issues but wasn't able to find this exactly. Maybe there is some way to do this already?
Related issues:
#217
#211
#488
The text was updated successfully, but these errors were encountered: