Adding files for require - import

Can something like this be made to work on Tago? I am looking for ways to modularize my code.

const circle = require(‘https://api.tago.io/file/5f4d5642151e4e0027fb10c6/circle.js’);

Thanks.

Hi Sanimesa,
I didn’t understand your question. What exactly you’re trying to import?

If you’re trying to just import other files, you need to work in external mode. Then you can import any file you want and use the analysis-builder to get the compiled file for uploading.