esm icon indicating copy to clipboard operation
esm copied to clipboard

How to use dedefault option?

Open alexkuc opened this issue 5 years ago • 0 comments

Hi!

Documentation mentions cjs: { "dedefault": false } option. What is the purpose of it?

I couldn't quite figure out what A boolean for requiring ES modules without the dangling require().default. means.

I thought it was to get rid of .default for default exports but if I set the option to true, default exports still require .default.

Am I doing something wrong or is dedefault meant for something else?

alexkuc avatar Aug 04 '20 00:08 alexkuc