In our managed package, we have a particular page where we have some default javascript that runs some calculations on some fields as you type and I am in the process of converting this page to LWCs.
The particular issue I have is that some of our clients require slightly different calculations to be run. I would like to upload these as functions in a javascript file inside a static resource in their org, but I need to be able to reference this from inside out managed package. Is this even possible? I'm struggling to find a way.
It doesn't have to be a static resource - it could be a LWC with no UI (just a javascript file).
Either way, the problem seems to be adding javascript from outside of the managed package into a component that is inside of the package.
Any thoughts would be hugely appreciated!
Thanks
Andy