Figure out, whether a module is an esm module
The ModuleResolver needs to know, whether a module is supposed to be an esm or a cjs module. Two thoughts:
- obvious *.mjs, *.cjs file extension mapping
- cdi needs to expose a wrapper for esm alongside the cjs interface, so a flag can be set in the esm mapper to signal an esm context