fix: remove custom newrelic snippet in favor of new frontend-build one (#832)

This commit is contained in:
Michael Terry
2022-02-17 16:12:59 -05:00
committed by GitHub
parent 947e5e3cb2
commit c0c51a3028
2 changed files with 0 additions and 28 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,18 +0,0 @@
const { getBaseConfig } = require('@edx/frontend-build');
const config = getBaseConfig('webpack-prod');
// Filter plugins in the preset config that we don't want
function filterPlugins(plugins) {
const pluginsToRemove = [
'a', // "a" is the constructor name of HtmlWebpackNewRelicPlugin
];
return plugins.filter(plugin => {
const pluginName = plugin.constructor && plugin.constructor.name;
return !pluginsToRemove.includes(pluginName);
});
}
config.plugins = filterPlugins(config.plugins);
module.exports = config;