Skip to content

Commit

Permalink
fix: multi plugin rspack output path error (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Apr 23, 2024
1 parent 21923fa commit 07d68d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/rspack-plugin/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
ensureModulesChunksGraphFn,
InternalBundlePlugin,
InternalRulesPlugin,
getSDK,
} from '@rsdoctor/core/plugins';
import type {
RsdoctorPluginInstance,
Expand Down Expand Up @@ -134,7 +135,9 @@ export class RsdoctorRspackPlugin<Rules extends Linter.ExtendRuleData[]>
ManifestType.RsdoctorManifestClientRoutes.Overall,
]);

this.sdk.setOutputDir(
const _sdk = getSDK(compiler.build.name);

_sdk.setOutputDir(
path.resolve(compiler.outputPath, `./${Constants.RsdoctorOutputFolder}`),
);
await this.sdk.writeStore();
Expand Down

0 comments on commit 07d68d0

Please sign in to comment.