Skip to content

Commit

Permalink
Add getCombinedSourceMap in transform plugin context (#2983) (#2993)
Browse files Browse the repository at this point in the history
* Add getCombinedSourceMap in transform plugin context (#2983)

* Update the code and doc style of combined sourcemap

* Update dependencies and fix security warnings

* Rename getCombinedSourcemap
  • Loading branch information
billowz authored and lukastaegert committed Jul 15, 2019
1 parent a36020d commit 6b500b8
Show file tree
Hide file tree
Showing 12 changed files with 389 additions and 151 deletions.
4 changes: 4 additions & 0 deletions docs/05-plugin-development.md
Expand Up @@ -355,6 +355,10 @@ Get the file name of an asset, according to the `assetFileNames` output option p

Get the file name of an emitted chunk. The file name will be relative to `outputOptions.dir`.

#### `this.getCombinedSourcemap() => SourceMap`

Get the combined source maps of all previous plugins. This context function can only be used in [`transform`](guide/en/#transform) plugin hook.

#### `this.getModuleInfo(moduleId: string) => ModuleInfo`

Returns additional information about the module in question in the form
Expand Down
186 changes: 85 additions & 101 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6b500b8

Please sign in to comment.