Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@rushstack/heft-rspack-plugin",
"comment": "Fix issue where ignoring ERR_MODULE_NOT_FOUND errors when importing the rspack config masks legitimate import issues.",
"type": "patch"
}
],
"packageName": "@rushstack/heft-rspack-plugin"
}
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,6 @@ export async function _tryLoadRspackConfigurationFileInnerAsync(
const configurationUri: string = pathToFileURL(configurationPath).href;
return await import(configurationUri);
} catch (e) {
const error: NodeJS.ErrnoException = e as NodeJS.ErrnoException;
if (error.code === 'ERR_MODULE_NOT_FOUND') {
// No configuration found, return undefined.
return undefined;
}
throw new Error(`Error loading Rspack configuration at "${configurationPath}": ${e}`);
}
} else {
Expand Down