Created
December 8, 2022 03:33
-
-
Save iugo/1dde0cb200e57f64df71c31ca0400b16 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "compilerOptions": { | |
| "strict": true | |
| }, | |
| "importMap": "./import_map.json" | |
| } |
This file contains hidden or 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
| { | |
| "imports": { | |
| "colors": "https://deno.land/std@0.167.0/fmt/colors.ts" | |
| } | |
| } |
This file contains hidden or 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
| import { blue } from 'colors'; | |
| console.log(blue('hehe')); | |
| // deno compile --output=bin -c deno.json main.ts | |
| // ./bin (error, lost import map) | |
| // deno compile --output=bin --import-map import_map.json main.ts | |
| // ./bin (works!) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment