Closed nataly87s closed 5 years ago
I don't see how this is a fix.
How is
import * as merge from 'deepmerge';
better than
import merge from 'deepmerge';
I get that there's room for personal taste (personally, I find import * as
very distasteful), but are there objective downsides to import merge
?
@msssk it is not a matter of taste, import *
is semantically different from import identifier
. The first imports everything that is exposed by the module, the second imports only the default export.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Description
fixes issue #120 remove default export