adaptive-learning / flocs-visual-components

Visual components for Flocs
GNU General Public License v3.0
0 stars 0 forks source link

What is the proper way to provide a JS library and specify its dependencies? #45

Open effa opened 7 years ago

effa commented 7 years ago

Source in several modules in ES6 and JSX. Two different approaches seem to be to either (1) bundle whole library into a single file or to (2) provide all modules, just transpiled by babel into old JS.

The second approach probably requires a client to use some kind of module bundler (?). On the other hand, it allows for better imports (without the need of exporting everything in index) and provides better error messages.

We have taken the first approach and there were several unclear points: