MCPcopy Index your code
hub / github.com/andywer/webpack-blocks / sourceMaps

Function sourceMaps

packages/webpack/index.js:193–199  ·  view source on GitHub ↗

* Just a convenience wrapper to enable sourcemaps in an easier-to-read fashion * than `setDevTool()`. * @TODO: Only sets the javascript sourcemaps now. Would be nice to make loaders * enable their specific sourcemaps when `sourceMaps()` is used. * * @param {string} [devtool] * @return {

(devtool = 'cheap-module-eval-source-map')

Source from the content-addressed store, hash-verified

191 * @return {Function}
192 */
193function sourceMaps(devtool = 'cheap-module-eval-source-map') {
194 return (context, util) => {
195 context.sourceMaps = true
196
197 return util.merge({ devtool })
198 }
199}

Callers 2

developmentConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…