V
V
Vitaly Stolyarov2018-11-02 22:32:25
JavaScript
Vitaly Stolyarov, 2018-11-02 22:32:25

Why does Webpack 4 break default imports?

If in the third version for modules

export default MyClass;
///
import MyClass from './my-class';

in the imported MyClass will be the same as in the exported one, then in the fourth version for some reason the following is obtained: I found many confirmations of this, but the main purpose of this change is not clear
{ default: MyClass }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question