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

Commit

Permalink
fix: fix windows url path handle
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Feb 23, 2020
1 parent d37c846 commit b50548e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/deno_cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class CacheModule implements DenoCacheModule {
* @param moduleName The module name is for unix style
*/
resolveModule(moduleName: string) {
// TODO: implements resolve module
// eg. import "/npm:tough-cookie@3?dew"
if (moduleName.indexOf("/") === 0) {
const fileHash = this.manifest.getHashFromUrlPath(moduleName);
Expand All @@ -83,7 +82,7 @@ class CacheModule implements DenoCacheModule {
const originDir = path.dirname(this.filepath);
const currentUrlPath = new URL(this.url);

const targetUrlPath = path.resolve(
const targetUrlPath = path.posix.resolve(
path.posix.dirname(currentUrlPath.pathname),
moduleName
);
Expand Down

0 comments on commit b50548e

Please sign in to comment.