lab.js
lab.js copied to clipboard
Update readme.md with correct instantiation and module import
Hi @ZeroPie, thanks a lot for your effort! I’m a bit hesitant to include this in the documentation right now, given that for example the import statement won’t work for most users — (I think) you’re assuming that folks have a complete parcel/webpack setup available so that they can import an NPM module, while the documentation is assuming that lab.js is available through a global variable (a UMD package loaded in the browser). I do think, though, that it would be super-valuable to document how to create your setup via parcel — would you consider creating a minimum setup for lab.js and parcel as a starterkit, similar to the single-page starterkit we ship with every release? I think that would be a great addition to the library, and it would be also amazing to document so that folks can use the NPM ecosystem more easily. Would you be up for that?
Hi Felix) I understand, here is the kit :) https://github.com/ZeroPie/lab.js-kit Shall i close the pr?
Thanks! As noted on Slack, this is amazing 😍 If you like, would you amend this PR (or create a new one) that links to your repository in the documentation? I think maybe you could add a recipe about how to use lab.js
with a bundler. Would love to provide your excellent kit some additional exposure!