Open
Description
Since v12, Node.js has supported ESM. We should investigate the best way to support ESM in the Kibana project.
Our node Babel preset current transpiles down to commonjs. Can we instead use ESM globally?
Does APM support ESM? @watson mentioned there might still be an issue hooking into the loader.