https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37911 Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #181274|0 |1 is obsolete| | --- Comment #140 from Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> --- Created attachment 181478 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181478&action=edit Bug 37911: (follow-up) Scan for requested components in caller and lazy load This should ensure that we only load what's requested. Maybe we can also find a way to call the exported hydrate function on demand. To test: 1) Apply the patch 2) Run yarn js:watch and wait for the first build if necessary 3) Load mainpage.pl and note that only hello-islands.ts is imported. 4) Uncomment <hello-world></hello-world> in intranet-main.tt 5) Reload the page 6) Note that now both component chunks are imported on demand 7) Discuss Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> -- You are receiving this mail because: You are watching all bug changes.