I have seen an explanation on this website that say :
_interopRequireDefault(): An ES6 CommonJS module is used as is (if it has a default export then it has a property named default). A normal CommonJS module becomes the value of the property default. In other words, in the later case, the module’s exports become the default export.
In codes, there is often several _interopRequireDefault
written in.
So if I understand well, since default export is a bunch of key/value on the whole file exported as a total entity, _interopRequireDefault
allows to choose which modules will enter in the default export of a specific code that it ?