Skip to content

Conversation

@aduth
Copy link
Member

@aduth aduth commented Apr 2, 2018

Related: #5267

This pull request seeks to reincorporate the Webpack devtool configuration option into the development build, enabling improved debugging through the browser developer tools. Without this option, the quality of the code will appear as transformed, making it difficult to trace through code in the source tab.

See: https://webpack.js.org/configuration/devtool/#devtool

These changes merely restore the value that existed prior to Webpack 4 upgrade.

If performance is a concern, we may consider another option, though ideally it is one of equivalent quality, particularly on the more challenging points of source maps: breakpoints set where intended, including in-line statements, and step-through and step-into with expected behavior.

We may also consider easier overrides, such as an environment variable. Though in this case, I might suggest it as a case for encouraging source debugging.

Testing instructions:

Verify source maps present if and only if development build npm run dev (.map files, visible in sources tab of decent browser).

@aduth aduth added the [Type] Build Tooling Issues or PRs related to build tooling label Apr 2, 2018
Copy link
Member

@ntwb ntwb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aduth aduth merged commit fffe00e into master Apr 3, 2018
@aduth aduth deleted the fix/webpack-source-maps branch April 3, 2018 01:33
@danielbachhuber danielbachhuber added this to the 2.6 milestone Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants