File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ impl DenoDir {
149149 if module_name. ends_with ( ".ts" ) || module_name. ends_with ( ".js" ) {
150150 return try_extension ( "" ) ;
151151 }
152- println ! ( "Trying {}.ts..." , module_name) ;
152+ debug ! ( "Trying {}.ts..." , module_name) ;
153153 if let Ok ( v) = try_extension ( ".ts" ) {
154154 return Ok ( v) ;
155155 }
156- println ! ( "Trying {}.js..." , module_name) ;
156+ debug ! ( "Trying {}.js..." , module_name) ;
157157 try_extension ( ".js" )
158158 } else if module_name. starts_with ( ASSET_PREFIX ) {
159159 panic ! ( "Asset resolution should be done in JS, not Rust." ) ;
@@ -176,11 +176,11 @@ impl DenoDir {
176176 if module_name. ends_with ( ".ts" ) || module_name. ends_with ( ".js" ) {
177177 return try_extension ( "" ) ;
178178 }
179- println ! ( "Trying {}.ts..." , module_name) ;
179+ debug ! ( "Trying {}.ts..." , module_name) ;
180180 if let Ok ( v) = try_extension ( ".ts" ) {
181181 return Ok ( v) ;
182182 }
183- println ! ( "Trying {}.js..." , module_name) ;
183+ debug ! ( "Trying {}.js..." , module_name) ;
184184 try_extension ( ".js" )
185185 }
186186 }
Original file line number Diff line number Diff line change 1- Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/015_import_no_ext.ts...
2- Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod3.ts...
3- Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.ts...
4- Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.js...
5- Trying http://localhost:4545/tests/subdir/mod2.ts...
61Downloading http://localhost:4545/tests/subdir/mod2.ts
7- Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/print_hello.ts...
82Downloading http://localhost:4545/tests/subdir/print_hello.ts
93true
104[Function: printHello]
You can’t perform that action at this time.
0 commit comments