mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
fix(javascript): keep unresolved created-loader bases unknown
This commit is contained in:
@@ -703,7 +703,8 @@ export const semanticRequireCallAt = (
|
||||
return {
|
||||
loader: selected?.loader ?? loader,
|
||||
arguments: node.arguments,
|
||||
sourceRelative: selected?.sourceRelative ?? loader !== "unknown",
|
||||
sourceRelative:
|
||||
selected?.sourceRelative ?? loader === "commonjs-loader",
|
||||
...(selected?.sourceRelativePath === undefined
|
||||
? {}
|
||||
: { sourceRelativePath: selected.sourceRelativePath }),
|
||||
|
||||
Reference in New Issue
Block a user