webcomponent: update build script and adjust Rollup config to conditionally include comments

This commit is contained in:
Carlos Santos 2025-05-08 17:26:06 +02:00
parent f893aaab19
commit 7d0059feac
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"build": "npm install && rollup -c", "build": "npm install && rollup -c",
"build:watch": "npm install && rollup -c -w",
"test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci", "test:unit": "jest --forceExit --testPathPattern \"tests/unit\" --ci",
"test:e2e": "playwright test", "test:e2e": "playwright test",
"lint": "eslint 'src/**/*.ts'" "lint": "eslint 'src/**/*.ts'"

View File

@ -61,7 +61,7 @@ export default {
// toplevel: true // Enable top-level variable renaming // toplevel: true // Enable top-level variable renaming
// }, // },
format: { format: {
comments: false // Remove all comments comments: !production
} }
}), }),
{ {