forked from denoland/deno
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add --importmap flag to deno bundle (denoland#4651)
- Loading branch information
1 parent
47a5802
commit dd3a949
Showing
4 changed files
with
68 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"imports": { | ||
"mod2": "./subdir/subdir2/mod2.ts" | ||
} | ||
} |
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,17 @@ | ||
import { returnsFoo, printHello2 } from "mod2"; | ||
|
||
export function returnsHi(): string { | ||
return "Hi"; | ||
} | ||
|
||
export function returnsFoo2(): string { | ||
return returnsFoo(); | ||
} | ||
|
||
export function printHello3(): void { | ||
printHello2(); | ||
} | ||
|
||
export function throwsError(): void { | ||
throw Error("exception from mod1"); | ||
} |
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