https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43091
--- Comment #1 from Paul Derscheid <[email protected]> --- Created attachment 202008 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202008&action=edit Bug 43091: Stop emitting staff-only Vue islands into the OPAC dist Both islands builds share modules/islands.ts, which hardcodes every island. The OPAC compilation therefore emits staff-only lazy chunks (acquisitions-menu, vendor-menu, admin-menu) into koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/, and the OPAC islands.esm.js bundles the staff Pinia stores. - split modules/islands.ts into shared machinery and per-application entry points (islands-intranet.ts, islands-opac.ts) - declare each application's islands as a Map literal and feed it through registerIsland(), the same path plugin islands take - pass store definitions into hydrate() instead of importing every store in the shared module - keep the full plugin import surface (registerIsland, hydrate, Vue re-exports) on both entries via star re-exports - point the rspack islands entries at the per-application modules Test plan: 1. yarn build 2. ls koha-tmpl/opac-tmpl/bootstrap/js/vue/dist/ => only islands.esm.js and a patron-self-renewal chunk are emitted 3. ls koha-tmpl/intranet-tmpl/prog/js/vue/dist/ => acquisitions-menu, vendor-menu and admin-menu chunks are still present 4. In the staff interface, visit pages using the acquisitions, vendor and admin menu islands and verify they render 5. On the OPAC, log in as a patron with renewable checkouts and verify the self-renewal modal still works -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
