The esm files inside dist/es6 folder should end with .mjs, otherwise those files are not correctly resolved by test runner, because they assume cjs by default.
Alternate is to add a simple package.json:
so nodejs based resolvers know that those files are esm.
The esm files inside
dist/es6folder should end with.mjs, otherwise those files are not correctly resolved by test runner, because they assumecjsby default.Alternate is to add a simple
package.json:{ "type": "module" }so nodejs based resolvers know that those files are esm.