Intermittent Parse Error on Plugin Rebuild

Just a guess: is it not interpreting the file as es6 because the file extension is .js? If you change the suffix, does it make a difference? (You’d need to replace a default parameter to test this obviously.)

If that’s the case then there’s an issue with core? It should always be assuming it’s es6?