-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add source maps to graph (#149)
Closes #146
- Loading branch information
Showing
11 changed files
with
317 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. | ||
|
||
import type { MediaType } from "./media_type.ts"; | ||
import { | ||
type RawSourceMap, | ||
type SourceMapUrl, | ||
} from "https://esm.sh/[email protected]/source-map.d.ts"; | ||
|
||
/** Additional meta data that is used to enrich the output of the module | ||
* graph. */ | ||
|
@@ -151,6 +155,12 @@ export interface ModuleJson extends CacheInfo { | |
/** If available, the calculated checksum of the module which can be used for | ||
* validating the integrity of the module. */ | ||
checksum?: string; | ||
/** If available, the upstream source map from the module. If present, | ||
* `sourceMapUrl` will be undefined. */ | ||
sourceMap?: RawSourceMap; | ||
/** If available, the upstream source map URL from the module. If present, | ||
* `sourceMap` will be undefined. */ | ||
sourceMapUrl?: SourceMapUrl; | ||
} | ||
|
||
/** The plain-object representation of a module graph that is suitable for | ||
|
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
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
Oops, something went wrong.