Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Dec 8, 2023
1 parent 9a1c4d6 commit bcb60b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions denops/ddc/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ export class Loader {

const staticLines = [];
for (const [index, path] of mods.entries()) {
staticLines.push(`import * as mod${index} from "${toFileUrl(path)}"`);
staticLines.push(
`import * as mod${index} from "${toFileUrl(path)}.href"`,
);
}
staticLines.push("export const mods = {");
for (const [index, path] of mods.entries()) {
staticLines.push(` "${toFileUrl(path)}":`);
staticLines.push(` "${toFileUrl(path).href}":`);
staticLines.push(` mod${index},`);
}
staticLines.push("};");
Expand Down

0 comments on commit bcb60b3

Please sign in to comment.