Support UMD/global or add usage notes to README
viveleroi opened this issue · 3 comments
viveleroi commented
Can you please either support UMD/global or add some usage notes to the README? I assume you're expecting users to include this into source via build pipeline like webpack, but just to play around I tried including it via script
and it fails with this error:
index.js:47 Uncaught ReferenceError: exports is not defined
at index.js:47
Thanks!
antonmedv commented
npm install will get builded version.
Or you can use something like unpkg.com
viveleroi commented
I used npm install
as provided in your README, but your use of exports
requires a CommonJS-supported build pipeline. This will fail for someone using AMD or Globals.
antonmedv commented
I see, maybe you can create dependent package for AMD?