https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42189
--- Comment #54 from Paul Derscheid <[email protected]> --- Created attachment 198940 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198940&action=edit Bug 42189: (QA follow-up) Stop bundling Cypress fixtures into prod - Convert rspack.config.js to function form so it can branch on argv.mode at config-load time - Drop the @cypress alias from commonResolve in production builds; only inject it when argv.mode is not "production" - Guard componentResolver.js's require.context("@cypress", ...) with process.env.NODE_ENV !== "production" so the bundler dead-codes the eager Cypress fixture collection - Throw at runtime if a @cypress/ path is ever passed to loadComponent in production, so the failure is loud rather than a silent miss - The two guards together prevent t/cypress/.vue files from reaching staff-client bundles even if a future change regresses one half To test: - yarn js:clean && yarn js:build (dev should succeed) - yarn js:clean && yarn js:build:prod (prod should succeed) - grep -l 't/cypress\|cypress/component' \ koha-tmpl/intranet-tmpl/prog/js/vue/dist/*.esm.js Production output: no matches expected (the bare string "@cypress/" survives as a runtime check; that is harmless) - ERM page and dashboard widgets should still work -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
