Skip to content

Commit

Permalink
Fix static path
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Dec 8, 2023
1 parent 2b092d8 commit c7648a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions denops/ddu/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class Loader {
}
staticLines.push("export const mods = {");
for (const [index, path] of mods.entries()) {
staticLines.push(` "${path}":`);
staticLines.push(` "${toFileUrl(path)}":`);
staticLines.push(` mod${index},`);
}
staticLines.push("};");
Expand Down Expand Up @@ -199,7 +199,7 @@ export class Loader {
const name = parse(path).name;

const mod: Mod = {
mod: (mods as Record<string, unknown>)[path] ??
mod: (mods as Record<string, unknown>)[toFileUrl(path).href] ??
await import(toFileUrl(path).href),
path,
};
Expand Down

0 comments on commit c7648a3

Please sign in to comment.