Okay I still didn't understand what was going on, but the problem was in my plugin (although it works fine!).
Since no edits helped, I just took and minified the plugin code with the "ECMAScript 2019 (via babel-minify)"option enabled. And its compiles fine now.
Just another C2s thing