@@ -78,9 +78,15 @@ function getWebpackConfig( config ) {
if ( config.minify ) {
plugins.push(
- new BabelMinifyPlugin( null, {
- comments: false
- } )
+ new BabelMinifyPlugin(
+ {
+ // Temporary workaround for https://github.com/ckeditor/ckeditor5/issues/542.
+ mangle: false
+ },
+ comments: false
+ }
+ )
);
}