ES Modules becomes widely used and would be good to provide compatible
output. ESM output will allow to remove wrappers in users bundles and as
a consequence reduce bundles size.
To make conversion more correct I eliminated default exports in api.
Otherwise to prevent collisions rollup would add default field near
all named exports. This will make impossible to consume this package by
cjs only modules.
ES Modules becomes widely used and would be good to provide compatible output. ESM output will allow to remove wrappers in users bundles and as a consequence reduce bundles size.
To make conversion more correct I eliminated default exports in api. Otherwise to prevent collisions rollup would add
default
field near all named exports. This will make impossible to consume this package by cjs only modules.Ref https://github.com/webpack/webpack/issues/7973