From 7d0059feac5a35987dacca2031ae71d791c20b2e Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Thu, 8 May 2025 17:26:06 +0200 Subject: [PATCH] webcomponent: update build script and adjust Rollup config to conditionally include comments --- frontend/webcomponent/package.json | 1 + frontend/webcomponent/rollup.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/webcomponent/package.json b/frontend/webcomponent/package.json index 7187007..d19e0d8 100644 --- a/frontend/webcomponent/package.json +++ b/frontend/webcomponent/package.json @@ -4,6 +4,7 @@ "main": "index.js", "scripts": { "build": "npm install && rollup -c", + "build:watch": "npm install && rollup -c -w", "test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci", "test:e2e": "playwright test", "lint": "eslint 'src/**/*.ts'" diff --git a/frontend/webcomponent/rollup.config.js b/frontend/webcomponent/rollup.config.js index bcc850d..903b142 100644 --- a/frontend/webcomponent/rollup.config.js +++ b/frontend/webcomponent/rollup.config.js @@ -61,7 +61,7 @@ export default { // toplevel: true // Enable top-level variable renaming // }, format: { - comments: false // Remove all comments + comments: !production } }), {