Skip to content

Commit

Permalink
adding docs for new output.devtoolNamespace option and [namespace] …
Browse files Browse the repository at this point in the history
…placeholder
  • Loading branch information
MagicDuck authored and EugeneHlushko committed Mar 23, 2018
1 parent 05989b8 commit 06922fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/content/configuration/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ devtoolModuleFilenameTemplate: info => {

If multiple modules would result in the same name, [`output.devtoolFallbackModuleFilenameTemplate`](#output-devtoolfallbackmodulefilenametemplate) is used instead for these modules.

## `output.devtoolNamespace`

`string`

This option determines the modules namespace used with the [`output.devtoolModuleFilenameTemplate`](#output-devtoolmodulefilenametemplate). When not specified, it will default to the value of: [`output.library`](#output-library). It's use is to prevent source file path collisions in sourcemaps when loading multiple libraries built with webpack.
For example, if you have 2 libraries, with namespaces `library1` and `library2`, which both have a file `./src/index.js` (with potentially different contents), they will expose these files as `webpack://library1/./src/index.js` and `webpack://library2/./src/index.js`.

## `output.devtoolNamespace`

Expand Down

0 comments on commit 06922fe

Please sign in to comment.