matthiasmullie / minify

CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.
https://matthiasmullie.github.io/minify/
MIT License
1.96k stars 310 forks source link

TinyMCE cannot be minified #427

Open danielmarschall opened 1 month ago

danielmarschall commented 1 month ago

TinyMCE contains the following JavaScript:

...
    const hasImage = dataTransfer => exists(dataTransfer.files, file => /^image\//.test(file.type));
    const needsCustomInternalDrop = (dom, schema, target, dropContent) => {
...

//.test(file.type)); seems to be mistaken with a comment and hence the resulting JavaScript raises a syntax error.