Using "type": "module" for an add-on

Hi, I have a local add-on where I’m using some npm package. Some packages are ESM only in never versions. However It does not seem supported to make an addon utilizing ESM.

Am I just doing things wrong, or is this simply not supported?

I’ve never tried creating an addon using "type": "module" so I’m not sure if it’s unsupported, but I know we don’t have an example of an addon with that configuration.