Hi everyone!
I’m currently using Stencil 3.0.0 to create a library that allows the viewing of documents, including PDFs, images, audios and videos. While I have successfully created the necessary components, I am now working on giving clients the ability to set up some configurations for the library, such as the API endpoints and login credentials.
My initial approach was to create a function that would handle these configurations and expose it to the client, but I ran into the issue of my exported functions not being bundled in the esm bundle. As a solution, I am considering using the @Method
approach, but I want the client to be able to call these functions before using any components.
My question is: Is there a way to expose a function to the client without using the @Method
approach?