We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c64f48 commit 9ad1b44Copy full SHA for 9ad1b44
packages/deno-vite-plugin/src/resolver.ts
@@ -169,6 +169,17 @@ export async function resolveViteSpecifier(
169
}
170
171
172
+ // Check if import.meta.resolve gave us a local file path
173
+ if (id.startsWith("file://")) {
174
+ const filePath = fileURLToPath(id);
175
+ // If this is a local workspace package, return it directly
176
+ // This avoids expensive deno info calls on workspace packages
177
+ if (filePath.startsWith(path.resolve(root, "../"))) {
178
+ console.log("[resolver] Local workspace package, returning directly:", filePath);
179
+ return filePath;
180
+ }
181
182
+
183
if (importer && isDenoSpecifier(importer)) {
184
const { resolved: parent } = parseDenoSpecifier(importer);
185
0 commit comments