Commit Graph

23 Commits

Author SHA1 Message Date
Stephan Badragan f925032d5a adding `output.devtoolNamespace` option
When loading multiple libraries built with webpack, you can run into
collisions of the sourcemap file paths. For examle, both have
"webpack:///src/index.js".

This change addresses the problem by introducing a new output option
`output.devtoolNamespace` which defaults to `output.library` when
not specified. The defaults moduleFilenameTemplates in all the
sourcemap plugins have been modified to start with:
"webpack://[namespace]/...", where [namespace] will be replaced by
the `output.devtoolNamespace`.

Notice that there are only two slashes following "webpack:" now.
This is to make it behave just as before when not building with a
namespace. When building with a namespace you only get the two
slashes, but from what I've seen the chrome dev tools only care
about the first 2 slashes anyways.

Discussed with sokra here:
https://github.com/webpack/webpack/issues/5767
2017-10-18 01:14:40 +01:00
Tobias Koppers 809629d843 chrome workaround for eval-source-maps
breakpoints now work fine
2017-06-09 16:31:11 +02:00
SendilKumar N b423a15724 Refactor(ES6): EvalSourceMapDevToolModuleTemplatePlugin 2017-02-22 18:27:02 +08:00
Sean Larkin 91c1f35e05 fix(node): rollback changes of Buffer.from to new Buffer() and bump down travis to 4.3 min node v 2017-01-16 23:57:27 -06:00
Sean Larkin 7327ee608a chore(eslint): added eslint-node-plugin (#3652) 2016-12-30 17:13:49 -06:00
Tobias Koppers 28776e28f3 added sourceRoot option for SourceMap plugins
simplified option passing

fixes #238
2016-05-05 10:24:18 +02:00
Logan Smyth f0634395be Use //# as the default sourceMappingURL format for eval-source-map 2016-02-19 11:33:45 -08:00
Kenny Tran 1cdc478c44 Fix lint warnings in EvalSourceMapDevToolModuleTemplatePlugin 2016-01-17 14:54:55 -08:00
Tobias Koppers 5bfc68aacb Merge branch 'master' of https://github.com/webpack/webpack 2016-01-03 21:44:02 +01:00
Tobias Koppers ded70aef28 moves stuff from webpack-core to webpack-sources 2015-12-29 17:44:55 +01:00
nanzhu af4c2e88c0 Set charset as 'utf-8' in sourcemap plugin
by adding 'charset=utf-8;'.
2015-12-24 10:50:22 +08:00
Tobias Koppers f7d799adb4 rebeautify without spacing after keyword 2015-07-16 00:19:23 +02:00
Avi Haiat 0a340f2b1a feat(app): Beautify all lib files 2015-07-13 01:20:09 +03:00
Tobias Koppers cebd3b9722 added linting 2015-04-23 23:55:50 +02:00
Tobias Koppers 0431b74149 added cheap-source-map and lineToLine option 2015-04-05 01:52:30 +02:00
Tobias Koppers 92f53176a2 use sourceAndMap is available 2015-04-03 12:38:56 +02:00
Tobias Koppers a979874cd0 updated deps, minor changes 2015-01-17 23:43:25 +01:00
Tobias Koppers e4dc029379 Merge pull request #648 from loganfsmyth/devtool-map-mutation
Don't persist sourcemap changes between steps.
2014-12-31 01:38:58 +01:00
Tobias Koppers c22bbf8fa2 Cache output of EvalSourceMapDevTool 2014-12-31 01:38:23 +01:00
Logan Smyth ca00bec085 Don't persist sourcemap changes between steps. 2014-12-28 15:17:05 -08:00
Tobias Koppers d7e50e5da3 Better filenames in dev tools 2014-07-18 13:31:50 +02:00
Tobias Koppers 3efb71500a fixes #316 2014-06-17 21:50:19 +02:00
Tobias Koppers 42c82f6b77 refactored ModuleTemplate to plugin interface 2014-06-03 08:45:26 +02:00