refactor: adjust circularDependencyRspackPlugin compilation API#10006
refactor: adjust circularDependencyRspackPlugin compilation API#10006fireairforce merged 4 commits intomainfrom
Conversation
✅ Deploy Preview for rspack canceled.
|
CodSpeed Performance ReportMerging #10006 will not alter performanceComparing Summary
|
chenjiahan
left a comment
There was a problem hiding this comment.
@SyMind should we expose JsCompilation to users?
|
i am also curious about this, rspack don't export |
|
I recommend implementing |
|
ok, i will add this |
|
@h-a-n-a I'm also curious if we should expose `compilation.pushDiagnostic' to users. It seems to be an internal API. |
We've actually done this in |
|
@h-a-n-a Cool, can you add documentation for |
64418d9 to
8a6e91c
Compare
|
I just update the pr and don't use |
Summary
In the method https://rspack.dev/zh/plugins/rspack/circular-dependency-rspack-plugin#ondetected , the
compilationparam isJsCompilationnotCompilationin rust side(see docs: https://rspack.dev/api/javascript-api/compilation), which means:I adjust the
compilationinject time stage, just inject thecompilationin the JS side, you can see my code atpackages/src/builtin-plugin/CircularDependencyRspackPlugin.ts.So the user can get the
compilationapi at js side:closes issue: #9877
I add the case at
packages/rspack-test-toolsChecklist