Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b01082

Browse files
author
Cre3per
committed
add documentation for --ext
1 parent 1a9308b commit 7b01082

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

runtime/manual/advanced/typescript/overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,10 @@ You can learn more about type-checking arguments
9898

9999
Since Deno supports JavaScript, TypeScript, JSX, TSX modules, Deno has to make a
100100
decision about how to treat each of these kinds of files. For local modules,
101-
Deno makes this determination based fully on the extension. When the extension
102-
is absent in a local file, it is assumed to be JavaScript.
101+
Deno makes this determination based on the extension. When the extension
102+
is absent in a local file, it is assumed to be JavaScript. The module type can
103+
be overridden using the `--ext` argument. This is useful if the module does not
104+
have a file extension, e.g. because it is embedded in another file.
103105

104106
For remote modules, the media type (mime-type) is used to determine the type of
105107
the module, where the path of the module is used to help influence the file

0 commit comments

Comments
 (0)