Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
fix: import module from 'file:///path/to/module/mod.ts' not work
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Feb 15, 2020
1 parent 4ef9673 commit 962411d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ class Deno {
): Promise<DenoModule> {
let remote = false;
const raw = moduleName;
moduleName = moduleName.replace(/^file:\/\//, "");
if (/^https?:\/\/.+/.test(moduleName)) {
remote = true;
moduleName = path.resolve(
Expand Down

0 comments on commit 962411d

Please sign in to comment.