Skip to content
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

concatjs_devserver incorrectly depends on rules_webtesting #2441

Open
mattem opened this issue Feb 2, 2021 · 13 comments
Open

concatjs_devserver incorrectly depends on rules_webtesting #2441

mattem opened this issue Feb 2, 2021 · 13 comments
Assignees
Labels
need: investigation Requires some digging to determine if action is needed package:concatjs

Comments

@mattem
Copy link
Collaborator

mattem commented Feb 2, 2021

As seen by @farcaller, concatjs_devserver should not have a dependency on rules_webtesting.

@mattem mattem added need: investigation Requires some digging to determine if action is needed package:concatjs labels Feb 2, 2021
@bduffany
Copy link
Contributor

I ran into this too, worked around it by importing like this:

load("@npm//@bazel/concatjs/devserver:concatjs_devserver.bzl", concatjs_devserver = "concatjs_devserver_macro")

@bduffany
Copy link
Contributor

bduffany commented Mar 6, 2021

Also, concatjs_devserver depends on @bazel_skylib: https://app.buildbuddy.io/invocation/7756c70e-91f1-492c-8ab1-3a794ffabd1c#log

@mattem
Copy link
Collaborator Author

mattem commented Mar 6, 2021

Oh! That's a bug in packaging, nice find

@mattem
Copy link
Collaborator Author

mattem commented Mar 6, 2021

Filed #2510 for packaging

@github-actions
Copy link

github-actions bot commented Jun 5, 2021

This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!

@github-actions github-actions bot added the Can Close? We will close this in 30 days if there is no further activity label Jun 5, 2021
@alexeagle alexeagle removed the Can Close? We will close this in 30 days if there is no further activity label Jun 5, 2021
@alexeagle alexeagle self-assigned this Jun 5, 2021
@ahahn95
Copy link

ahahn95 commented Mar 10, 2022

I'm still seeing this issue

@alexeagle
Copy link
Collaborator

The concatjs package is in "maintenance mode" so I don't think anyone is going to fix this.

@Mivr
Copy link

Mivr commented Mar 16, 2022

@alexeagle If concatjs is in maintenance mode what would you recommend as a bundler that follows the ibazel protocol?

@farcaller
Copy link

I made a patch to npm's liveserver that allows to use it with ibazel. I bundled it all with rollup.

@Mivr
Copy link

Mivr commented Mar 16, 2022

@farcaller Thank you for the preposition, I also found this: https://github.com/bazelbuild/rules_nodejs/pull/2431/files (Webpack 5 serve using ibazel, I have not tested it though)

I am actually looking for a solution that is maintained, as the mentioned ones are nice but I do not expect to be able to file a bug and the bug to be fixed. Of course, a self-maintained solution is also an option, but it looks weird to have to write your own dev server rule in order to have any dev server at all, this is a problem mostly for POC or very small projects. I know bazel is not for small projects, but POC for large codebases are small and need quick solutions.

@farcaller
Copy link

I guess a good thing about liveserver is that it's pretty limited in what it does, so there's little to fix (in fact it's abandonware but still overwhelmingly popular). But yeah, I wasn't much excited about maintaining an ibazel patch.

@alexeagle
Copy link
Collaborator

aspect-build/rules_webpack has an ibazel-aware devserver.

Otherwise yeah it's a missing feature in general, I think big companies are rolling their own.

@Mivr
Copy link

Mivr commented Mar 17, 2022

@alexeagle Thank you very much these rules look great! I will definitely use these rules in a POC for the organization I work for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need: investigation Requires some digging to determine if action is needed package:concatjs
Projects
None yet
Development

No branches or pull requests

6 participants