Parcourir la source

Internal: Workaround for Safari's bug. See #542.

Piotrek Koszuliński il y a 8 ans
Parent
commit
dfc9b95b8b
1 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 9 3
      scripts/docs/snippet-adapter/snippetadapter.js

+ 9 - 3
scripts/docs/snippet-adapter/snippetadapter.js

@@ -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
+				}
+			)
 		);
 	}