Skip to content

Commit

Permalink
fix(rspack): rspack loader analysis error (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
easy1090 authored Mar 5, 2024
1 parent e7a32f1 commit 08c5a5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-seals-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rsdoctor/core': patch
---

fix(rspack): rspack loader analysis error
2 changes: 1 addition & 1 deletion packages/core/src/inner-plugins/plugins/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class InternalLoaderPlugin<
(callback: Function) =>
(loaderContext: LoaderContext<unknown>, module: NormalModule) => {
// loaders which are already intercepted in afterPlugins hook by Rsdoctor.
const proxyLoaders = module.loaders || [];
const proxyLoaders = module.loaders || loaderContext?.loaders || [];

// return origin loaders not doctor internal loaders
const originLoaders = proxyLoaders.map((loader) => {
Expand Down

0 comments on commit 08c5a5e

Please sign in to comment.