How can I import and use the ESM module standard in Visual Builder implementations?
Summary:
I understand that natively VisualBuilder uses requireJS for module management. But EcmaScript Modules (ESM) have become the de facto standard for all major browsers. Since many JavaScript libraries are now implemented and distributed as ESM, can I use them in my Visual Builder apps? And if so, how?
Content:
It appears that VisualBuilder Action Chains are not ESM aware and don't have access to exports from ESM modules such as const variables that have been exported. I suppose we could create a wrapper for these modules with a define() for all of the exports. But that would be very time-consuming and seems unnecessary when browsers directly support ESM.
Tagged:
0