Update readme.md with correct instantiation and module import#110
Update readme.md with correct instantiation and module import#110ZeroPie wants to merge 2 commits into
Conversation
|
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) |
|
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 |
No description provided.