I'm using webpack with Symfony 3.x and created a JS file with a function called by a third-party plugin on an event. When webpack minifies the file it changes the name of the function, so it can no longer be called on the event by its name. How can mangling of the function name be avoided?
// Source JS file to be minified by webpack
require('./plugin');
function elementRemoved(data) { }