The following script falls over when the ASP.NET bundler tries to minify it.
/* Minification failed. Returning unminified contents.
(164,59-60): run-time error JS1195: Expected expression: >
(164,87-88): run-time error JS1004: Expected ';': )
*/
...
var isFruit = $("select#fruit").children().filter((i, e) => $(e).text() === "Fruit...").length > 0;
My guess is that the minifier is working with an older JS version than the rest of my project (as the code works fine in Visual Studio and in the browser), so it doesn't recognise the lambda expression syntax. How would I go about fixing this?