antonmedv/finder

Support UMD/global or add usage notes to README

viveleroi opened this issue · 3 comments

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!

npm install will get builded version.
Or you can use something like unpkg.com

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.

I see, maybe you can create dependent package for AMD?