-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cleanup(repo): remove unused dependencies #27676
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
View your CI Pipeline Execution ↗ for commit e3322a8.
☁️ Nx Cloud last updated this comment at |
ef3b8e5
to
3efd587
Compare
3efd587
to
0082dc8
Compare
0082dc8
to
1088640
Compare
1088640
to
2682a0d
Compare
2682a0d
to
ad83522
Compare
Hi @JamesHenry, I hope you're doing well! I just wanted to kindly follow up on this PR as it has been open for about a month without any reviews. Whenever you have a chance, could you please take a look? Let me know if there’s anything I can do to help move this forward. Thanks again for your time and consideration! |
LGTM, thanks, sorry just needs a conflict fix up in the lock file |
0617dc6
to
b0071a1
Compare
I pushed it up myself |
@Phillip9587 I'm afraid it looks like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
@JamesHenry I updated the rspack plugin code to import webpack sources through the rspack reexport. See https://rspack.dev/api/javascript-api/index#sources-object |
I opened #28447 to remove the |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> The rspack plugin has no dependency-checks in place. I discovered it while working on #27676. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> The `@nx/dependency-checks` eslint rule should be used. There are a few dependencies that I don't know how to proceed with: ``` The "rspack" project uses the following packages, but they are missing from "dependencies": - @nx/workspace - webpack-sources - @module-federation/sdk @nx/dependency-checks The "@rspack/plugin-minify" package is not used by "rspack" project ``` ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> #27676 --------- Co-authored-by: Emily Xiong <xiongemi@gmail.com> Co-authored-by: Colum Ferry <cferry09@gmail.com>
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> The rspack plugin has no dependency-checks in place. I discovered it while working on #27676. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> The `@nx/dependency-checks` eslint rule should be used. There are a few dependencies that I don't know how to proceed with: ``` The "rspack" project uses the following packages, but they are missing from "dependencies": - @nx/workspace - webpack-sources - @module-federation/sdk @nx/dependency-checks The "@rspack/plugin-minify" package is not used by "rspack" project ``` ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> #27676 --------- Co-authored-by: Emily Xiong <xiongemi@gmail.com> Co-authored-by: Colum Ferry <cferry09@gmail.com>
removed the webpack-sources import and replaced it with the sources export from rspack <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> `@nx/rspack` uses `webpack-sources` which is not listed as dependency. The issue originated in PR #27676 but i decided to split it out. I also opened #28225 to add the dependency-check rule for rspack. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> `@nx/rspack` uses the reexport from `@rspack/core` https://rspack.dev/api/javascript-api/#sources-object ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> #28225 #27676
removed the webpack-sources import and replaced it with the sources export from rspack <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior <!-- This is the behavior we have today --> `@nx/rspack` uses `webpack-sources` which is not listed as dependency. The issue originated in PR #27676 but i decided to split it out. I also opened #28225 to add the dependency-check rule for rspack. ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> `@nx/rspack` uses the reexport from `@rspack/core` https://rspack.dev/api/javascript-api/#sources-object ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> #28225 #27676
@Phillip9587 is this one still relevant? Does it just need a rebase? |
@JamesHenry Yes it is. I'm going to rebase it. Should i open a PR for each individual removal? Would it be easier to merge multiple PRs? |
removes the unused and deprecated depdendency `url-loader` and references in dependency-check eslint rules
removes the unused and deprecated depdendency `raw-loader`
6df7c72
to
e3322a8
Compare
@JamesHenry Can we merge this now? Rebasing takes quite some time and the dependencies are unused so there are no source code changes |
Thanks again! |
See individual commits
Current Behavior
Expected Behavior
Related Issue(s)
Fixes #