import { type ParseModuleOptions } from "https://deno.land/x/deno_graph@0.49.0/mod.ts";
Properties
For remote resources, a record of headers should be set, where the key's have been normalized to be lower case values.
The default jsxImportSource to use in JSX/TSX files when no
@jsxImportSource
pragma is specified. In Deno, this is set to the
compilerOptions.jsxImportSource
value if compilerOptions.jsx
is set to
react-jsx
or react-jsxdev
.
Methods
An optional callback that allows the default resolution logic of the module graph to be "overridden". This is intended to allow items like an import map to be used with the module graph. The callback takes the string of the module specifier from the referrer and the string URL of the referrer. The callback then returns a fully qualified resolved URL string specifier.
An optional callback that can allow custom logic of how type dependencies
of a module to be provided. This will be called if a module is being added
to the graph that is is non-typed source code (e.g. JavaScript/JSX) and
allow resolution of a type only dependency for the module (e.g. @types
or a .d.ts
file).