For this example, we could have put the component into the index.js directly. However,
the more your library grows, the greater the control you will want to have over your exports.
Testing & Debugging
Testing can be done by creating a Wonderland Engine project and installing your library using a local path.
For this tutorial, we will assume a Wonderland Engine project is created with the name MyWonderland.
In the project’s root, you can run:
Or provide a local package (e.g., as .tar.gz) for them to install
Publish the Library
By publishing the library as a package on the npm package repository, you mark a certain version of the
code with a version number and upload the package to the npm servers for download by other developers.