How to split frontend app files with Javascript Modules?

Hi all,

I’m just wondering if javascript modules has been implemented as a feature as yet? (required/import)?

My custom app app.js script is looking pretty long, and would love to be able to split it out.

Hi @twistedpro,

The modules are not supported in the frontend of the app. But, you can ofcourse split the files and import all the JavaScript files in the HTML file so that the functionality can be split and cross-referenced across different files for the app.

You can checkout an example of files split and how are imported in the HTML file with this app.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.