Hello,
If you take a module such as N/task, it doesn't work with client scripts. If you load this module or a custom module that loads N/task, on Client side, the entire client script breaks without any error breaking all client side validations. If we do this the other way, say, load N/ui on a user event script, an error is thrown when the record is loaded.
The use case is that it's hard to create a single library for a specific module and include them commonly in any type of script. Currently, I have to do modulex.js, modulex-server.js and modulex-client.js
If there is a possibility to conditionally load based on runtime context, I can combine 3 files to a single file.
Any ideas?
Riaz G