anseki / leader-line

Draw a leader line in your web page.
http://anseki.github.io/leader-line/
MIT License
3.03k stars 424 forks source link

Not usable as a "real" npm module #354

Closed witek closed 2 years ago

witek commented 2 years ago

LeaderLine is not usable as a "real" npm module with require() because it does not export itself properly.

Solution would be to add the following as the last line of the source code:

module.exports = LeaderLine;
anseki commented 2 years ago

Hi @witek, thank you for the comment. For loading the library, see document: https://anseki.github.io/leader-line/#usage If you want to import the library, use a packer such as Webpack. For example: https://github.com/anseki/leader-line/issues/199