diff --git a/packages/rspack-plugin/src/plugin.ts b/packages/rspack-plugin/src/plugin.ts index c6452a34..5c63f43e 100644 --- a/packages/rspack-plugin/src/plugin.ts +++ b/packages/rspack-plugin/src/plugin.ts @@ -11,6 +11,7 @@ import { ensureModulesChunksGraphFn, InternalBundlePlugin, InternalRulesPlugin, + getSDK, } from '@rsdoctor/core/plugins'; import type { RsdoctorPluginInstance, @@ -134,7 +135,9 @@ export class RsdoctorRspackPlugin ManifestType.RsdoctorManifestClientRoutes.Overall, ]); - this.sdk.setOutputDir( + const _sdk = getSDK(compiler.build.name); + + _sdk.setOutputDir( path.resolve(compiler.outputPath, `./${Constants.RsdoctorOutputFolder}`), ); await this.sdk.writeStore();