Node now gives us the option of using .mjs files or setting "type": "module". I would like to do that because it's 2021, ES6 is widespread and I'm writing my server-side code using ES6 modules.
But that means I can't use require() like we always did before. Ok then, I'll just use ES6's import.
Well nope, it doesn't seem that is officially supported for Webpack's config. All the old answers on StackOverflow are telling me I've got to use Babel for backwards compatibility. It seems like there should be a better solution by now.
Is there one?