Skip to content

Commit

Permalink
fix(plugin): rspack getSDK error (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Apr 23, 2024
1 parent 7d77753 commit d287487
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/bright-parrots-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rsdoctor/rspack-plugin': patch
---

fix(plugin): rspack getSDK error
2 changes: 1 addition & 1 deletion packages/rspack-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class RsdoctorRspackPlugin<Rules extends Linter.ExtendRuleData[]>
ManifestType.RsdoctorManifestClientRoutes.Overall,
]);

const _sdk = getSDK(compiler.build.name);
const _sdk = getSDK(compiler.options.name);

_sdk.setOutputDir(
path.resolve(compiler.outputPath, `./${Constants.RsdoctorOutputFolder}`),
Expand Down

0 comments on commit d287487

Please sign in to comment.