You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How can I import and use the ESM module standard in Visual Builder implementations?

edited Oct 23, 2023 2:48PM in Visual Builder 2 comments

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!