Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Jan 8, 2025
1 parent 434f9e5 commit d7a0609
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,15 @@ function appendDependency(
webpackGraph: Webpack.ModuleGraph,
graph: ModuleGraph,
) {
// Rspack does not support `getResolvedModule` yet.
const resolvedWebpackModule = webpackGraph?.getResolvedModule
? (webpackGraph.getResolvedModule(webpackDep) as Webpack.NormalModule)
: undefined;

if (!resolvedWebpackModule) {
return;
}

const rawRequest = getWebpackDependencyRequest(
webpackDep,
resolvedWebpackModule,
Expand Down

0 comments on commit d7a0609

Please sign in to comment.