WordPress plugin got rejected

Make sure you’re including source files as well (before you run them through Webpack). If you didn’t, then this is indeed an issue, but I doubt it’s solely responsible for the hard rejection.