Conversation
Codecov Report
@@ Coverage Diff @@
## master #674 +/- ##
=======================================
Coverage 96.55% 96.55%
=======================================
Files 1 1
Lines 29 29
Branches 4 4
=======================================
Hits 28 28
Partials 1 1
Continue to review full report at Codecov.
|
|
@wuct please review |
|
@pgross41 the current code assume js source map files have file extentions |
|
@wuct my files are using Would you prefer something like this over the code that is currently in the PR? const allFiles = [...files, ...auxiliaryFiles];
const sourceFile = R.find(R.test(/\.js$/), allFiles);
const sourceMap = R.find(R.test(/\.js\.map$/), allFiles); |
|
@wuct I updated webpack to 5 but the integration test errors here with: This expression is undefined: I have tried tweaking it but don't even know what to change to get the file contents of the sourcemap. I also tried the So it looks like this PR won't add any broad support for webpack 5 but it does add support for the particular webpack 5 config for our project 🙂 |
|
@pgross41 I've fixed the test in Webpack 5 in this branch. I also fixed the sourcemap finding issue in that branch. Could you help me test it? I am not using ElasticAPM recently. Thanks a lot! |
|
@wuct thanks for properly fixing my bandaid solution. I pulled the webpack5 branch, ran |
|
@wuct is your webpack5 branch ready for a release? |
Yes, I'll release it this week. Just too busy these days, sorry about that. |
|
No problem, I totally understand and I appreciate your time! |
## [1.6.2](v1.6.1...v1.6.2) (2021-05-21) ### Bug Fixes * fix souremap files finding in webpack 5 ([070246f](070246f)), closes [#674](#674)
|
Thank you @wuct! |
|
@pgross41 you are very welcome! Thanks for bringing it up! |

I was using this successfully on webpack 3 but it fails after upgrading to webpack 5 with the following error, written multiple times:
I determined the sourceFile was populated but the sourceMap was blank. I'm sure there is a correct way to do this with webpack 5 but this is a nice cheap solution. 🙂