* 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')
| 191 | * @return {Function} |
| 192 | */ |
| 193 | function sourceMaps(devtool = 'cheap-module-eval-source-map') { |
| 194 | return (context, util) => { |
| 195 | context.sourceMaps = true |
| 196 | |
| 197 | return util.merge({ devtool }) |
| 198 | } |
| 199 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…