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.