Skip to content

Commit d057c14

Browse files
committed
fix: do not relativize paths for weval
1 parent f9b6049 commit d057c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/componentize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export async function componentize(
266266

267267
// Ensure source path is relative to workspacePrefix for the args list,
268268
// regardless of the directory
269-
if (resolve(sourcePath).startsWith(resolve(workspacePrefix))) {
269+
if (!opts.enableAot && resolve(sourcePath).startsWith(resolve(workspacePrefix))) {
270270
sourcePath = relative(workspacePrefix, sourcePath);
271271
}
272272

0 commit comments

Comments
 (0)