Open alexkuc opened 4 years ago
Hi!
Documentation mentions cjs: { "dedefault": false } option. What is the purpose of it?
cjs: { "dedefault": false }
I couldn't quite figure out what A boolean for requiring ES modules without the dangling require().default. means.
A boolean for requiring ES modules without the dangling require().default.
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.
.default
Am I doing something wrong or is dedefault meant for something else?
dedefault
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?