Skip to content

Commit 04fb6f1

Browse files
silverwindclaude
andauthored
Replace rollup-plugin-license with rolldown-license-plugin (go-gitea#37130)
Replace `rollup-plugin-license` and `wrap-ansi` with [`rolldown-license-plugin`](https://github.com/silverwind/rolldown-license-plugin), a zero-dependency plugin with async parallel I/O and built-in word wrapping. - Removes `rollup-plugin-license` (pulls in `lodash`, `moment`) and `wrap-ansi` from the dependency tree - License build time reduced by ~40% (370ms vs 640ms) - Added e2e test for `licenses.txt` Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: Claude (Opus 4.6) <noreply@anthropic.com>
1 parent 0914a44 commit 04fb6f1

5 files changed

Lines changed: 41 additions & 394 deletions

File tree

build/generate-go-licenses.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919

2020
// regexp is based on go-license, excluding README and NOTICE
2121
// https://github.com/google/go-licenses/blob/master/licenses/find.go
22+
// also defined in vite.config.ts
2223
var licenseRe = regexp.MustCompile(`^(?i)((UN)?LICEN(S|C)E|COPYING).*$`)
2324

2425
// primaryLicenseRe matches exact primary license filenames without suffixes.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"pdfobject": "2.3.1",
6060
"perfect-debounce": "2.1.0",
6161
"postcss": "8.5.9",
62-
"rollup-plugin-license": "3.7.0",
62+
"rolldown-license-plugin": "2.2.0",
6363
"sortablejs": "1.15.7",
6464
"swagger-ui-dist": "5.32.2",
6565
"tailwindcss": "3.4.19",
@@ -73,8 +73,7 @@
7373
"vite-string-plugin": "2.0.2",
7474
"vue": "3.5.32",
7575
"vue-bar-graph": "2.2.0",
76-
"vue-chartjs": "5.3.3",
77-
"wrap-ansi": "10.0.0"
76+
"vue-chartjs": "5.3.3"
7877
},
7978
"devDependencies": {
8079
"@eslint-community/eslint-plugin-eslint-comments": "4.7.1",

0 commit comments

Comments
 (0)