From 74f878b6b5060730059a8656759fa8af360f40ce Mon Sep 17 00:00:00 2001 From: Joe Haddad Date: Sat, 13 May 2017 09:39:32 -0400 Subject: [PATCH] Improve unmapper file heuristic, add limited warning support, and ignore internal errors (#2128) * Browser sort is not stable * Fix ordering of final message * Register the warning capture * Display only createElement warnings * Use different method name * Fix regression * Ignore errors with only node_module files * Ignore null files, too * Revise count * Revise warning * Update overlay.js * Add support for https://github.com/facebook/react/pull/9679 * Use absolute paths * Trim path if it's absolute * Make sure it's an absolute path * Oops * Tweak for new behavior * Make it safer * More resilient warnings * Prettier output * Fix flow --- config/webpack.config.dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/webpack.config.dev.js b/config/webpack.config.dev.js index e7ab84a..3d18991 100644 --- a/config/webpack.config.dev.js +++ b/config/webpack.config.dev.js @@ -77,7 +77,7 @@ module.exports = { publicPath: publicPath, // Point sourcemap entries to original disk location devtoolModuleFilenameTemplate: info => - path.relative(paths.appSrc, info.absoluteResourcePath), + path.resolve(info.absoluteResourcePath), }, resolve: { // This allows you to set a fallback for where Webpack should look for modules.