I am using node 13.4.0. with es modules (via .mjs extensions).
Using webpack config files as es modules crashes:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /path-to-config-dir/webpack.config.mjs
Simplest es module webpack.config.mjs:
export default {};
Does webpack support es-modules for config files? I couldn't find a lot of information on that topic. I've found this (an issue closed in June 2019):
https://github.com/webpack/webpack/pull/9226
So I am wondering about the state of webpack config files regarding mjs. Can anybody point me to some documentation on this?