Skip to content

Commit db5b3b7

Browse files
committed
fix: use matchResource for importModule when available
1 parent ac60841 commit db5b3b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function pitch(request) {
361361
}
362362

363363
this.importModule(
364-
`${this.resourcePath}.webpack[javascript/auto]!=!!!${request}`,
364+
`${this._module.matchResource || this.resourcePath}.webpack[javascript/auto]!=!!!${request}`,
365365
{
366366
layer: options.layer,
367367
publicPath: /** @type {string} */ (publicPathForExtract),

0 commit comments

Comments
 (0)