I just want to clear my concepts? I'm using a npm package named reactstrap which is installed on node_modules folder. The package contains 4 folders.
- dist
- es
- lib
- src
I know src folder contains the source code of the library but what is the difference between other these 3 folders.
What if I write something like this to import a component.
import {Button} from 'reactstrap';
The above line is using ES6 module syntax to import a component.
Does this Button component is came from the es folder or lib folder?
What will be the syntax if I want to import the Button component by using commonJS module pattern?