openedx / wg-frontend

Open edX Frontend Working Group
4 stars 1 forks source link

Source maps not uploaded to New Relic during production builds due to Webpack 5 compatibility #1

Closed adamstankiewicz closed 3 years ago

adamstankiewicz commented 3 years ago

Context

@edx/frontend-build currently uses the new-relic-source-map-webpack-plugin package in its production Webpack configuration file to upload source maps to New Relic to be able to view un-minified stack traces for JS errors.

However, it was noticed that since upgrading to Webpack 5, we seem to have lost the ability for source maps to be uploaded to New Relic. This is likely due to new-relic-source-map-webpack-plugin being archived and no longer actively maintained, having not received any updates to be compatible with Webpack 5.

There is an official package from New Relic (i.e., @newrelic/publish-sourcemap) that the new-relic-source-map-webpack-plugin uses under the hood.

Possible implementation considerations:

AC

adamstankiewicz commented 3 years ago

This was resolved in @edx/frontend-build@8.0.3 🚀