-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Guess extensions on extension not provided (#859)
Fixes #857
- Loading branch information
1 parent
fc1c54d
commit eba58b7
Showing
9 changed files
with
134 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { isTSFile, printHello, phNoExt } from "./subdir/mod3"; | ||
console.log(isTSFile); | ||
console.log(printHello); | ||
console.log(phNoExt); | ||
|
||
import { isMod4 } from "./subdir/mod4"; | ||
console.log(isMod4); | ||
|
||
import { printHello as ph } from "http://localhost:4545/tests/subdir/mod2"; | ||
console.log(ph); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Downloading http://localhost:4545/tests/subdir/mod2 | ||
Downloading http://localhost:4545/tests/subdir/mod2.ts | ||
Downloading http://localhost:4545/tests/subdir/print_hello.ts | ||
true | ||
[Function: printHello] | ||
[Function: printHello] | ||
true | ||
[Function: printHello] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import "./non-existent"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
NotFound: Cannot resolve module "./non-existent" from "[WILDCARD]deno/tests/error_006_import_ext_failure.ts" | ||
at maybeError (deno/js/errors.ts:[WILDCARD]) | ||
at maybeThrowError (deno/js/errors.ts:[WILDCARD]) | ||
at sendSync (deno/js/dispatch.ts:[WILDCARD]) | ||
at Object.codeFetch (deno/js/os.ts:[WILDCARD]) | ||
at DenoCompiler.resolveModule (deno/js/compiler.ts:[WILDCARD]) | ||
at DenoCompiler._resolveModuleName (deno/js/compiler.ts:[WILDCARD]) | ||
at moduleNames.map.name (deno/js/compiler.ts:[WILDCARD]) | ||
at Array.map (<anonymous>) | ||
at DenoCompiler.resolveModuleNames (deno/js/compiler.ts:[WILDCARD]) | ||
at Object.compilerHost.resolveModuleNames (deno/third_party/node_modules/typescript/lib/typescript.js:[WILDCARD]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const isTSFile = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const isTSFile = true; | ||
export { printHello } from "./print_hello.ts"; | ||
export { printHello as phNoExt } from "./print_hello"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export const isMod4 = true; |