From 189ad604385e585f8093212c21ff9f0f77f95ebe Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Tue, 4 Nov 2025 13:37:49 +0000 Subject: [PATCH] Bug 36674: (follow-up) Stop emitting Cypress API client source maps - Use devtool: false to prevent emitting source maps for cypress. - Add package script to clean built assets, artifacts. --- package.json | 1 + rspack.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 5dea65c54f9..c6a53b1b133 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "js:build:analyze": "rspack build --mode development --analyze", "js:watch": "rspack build --mode development --watch", "js:build:prod": "rspack build --mode production", + "js:clean": "find koha-tmpl/intranet-tmpl/prog/js/vue/dist -type f -name '*.js*' -delete && find t/cypress/plugins/dist -type f -name '*.js*' -delete", "build": "yarn css:build && yarn js:build && yarn api:bundle", "build:prod": "yarn css:build:prod && yarn js:build:prod && yarn api:bundle", "cypress": "cypress", diff --git a/rspack.config.js b/rspack.config.js index e05273fb7b5..bec0d758ea7 100644 --- a/rspack.config.js +++ b/rspack.config.js @@ -171,6 +171,7 @@ module.exports = [ "api-client.cjs": "./koha-tmpl/intranet-tmpl/prog/js/fetch/api-client.js", }, + devtool: false, output: { filename: "[name].js", path: path.resolve(__dirname, "t/cypress/plugins/dist/"), -- 2.39.5