helix-importer-ui icon indicating copy to clipboard operation
helix-importer-ui copied to clipboard

[import] Hot reload imported files

Open kptdobe opened this issue 1 year ago • 0 comments

If your import.js script has local imports, they are not hot reloaded when changed. A full page reload is required. The workaround to speed up development is to put everything in one script. Another workaround could be to have a rollup or webpack script to bundle the import.js and its dependencies in on single file and run a watcher that will reconstruct the file on change. This requires some bundling knowledge.

Ideally, this would be managed automatically by the importer.

kptdobe avatar Sep 27 '23 15:09 kptdobe