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
fix(builtin): convert pkg_web to use cjs instead of js #3500
fix(builtin): convert pkg_web to use cjs instead of js #3500
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
f68e8ea
to
30b7719
Compare
30b7719
to
cda3300
Compare
I am missing tests for this, and I am very much in doubt how I would go about doing that. |
This Pull Request has been automatically marked as stale because it has not had any activity for 6 months. It will be closed if no further activity occurs in 30 days. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
Any chance this can be rewied and eventually approved? |
Looks simple enough. I'll merge it in. rules_nodejs is unmaintained at this point (since Q4 last year) and no new maintainers have stepped up. You should consider migrating to rules_js. Check out the migration guide. You can also get community support for rules_js on the #javascript channel on Bazel slack. |
Thank you! |
The Angular team is currently looking into migrating their OSS build to rules_js as well tho they haven't pulled the trigger yet on starting it. We'd need an answer to their ng_module but I believe that we can take the same worker approach we took in ts_project (in rules_js) to make a new ng_project rule that would have the same performance that ng_module does. |
You can already use ts_project with ngc without worker mode. Example found here, https://github.com/aspect-build/bazel-examples/tree/main/angular |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently the
pkg_web
rule fails if thepackage.json
type field is set tomodule
in contrast to using the default common js modules.Issue Number: N/A
What is the new behavior?
The build now works in either situation by fixing the files to be common js no matter the configuration in package.json
Does this PR introduce a breaking change?
Other information