Hi folks.
We are working on packaging Open edX Maple.2 for Bitnami, and we have found that there is a hardcoded dependency on @newrelic/publish-sourcemap
within the @edx/frontend-build
NPM package, for building MFEs. Note that the dependency is being installed via @edx/new-relic-source-map-webpack-plugin
, which depends on the mentioned New Relic dependency.
Our concern is that the @newrelic/publish-sourcemap
is not open-source software, and thus cannot be distributed legally. In fact, the following note is added in its package.json
:
"license": "New Relic proprietary"
We have been able to disable this dependency at runtime via the ENABLE_NEW_RELIC=false
environment variable. However, it is still a build-time dependency and is required even if the mentioned environment variable is set. See @edx/frontend-build/config/webpack.prod.config.js
:
...
const NewRelicSourceMapPlugin = require('@edx/new-relic-source-map-webpack-plugin');
...
if (process.env.ENABLE_NEW_RELIC !== 'false') {
...
extraPlugins.push(new NewRelicSourceMapPlugin({
Note: Similar issues have been reported with Open edX components, like cs_comments_service.
Do you know of any other way to disable the dependency (and not only the functionality via ENABLE_NEW_RELIC
)? If not, is there anything else we can do to get this issue resolved?
Note that in our case, we have a requirement to package the MFE as well as its dependencies, as we need to be able to regenerate it each time there is a change to the domain/IP address.