SwissDataScienceCenter / renku-ui

The web frontend of the Renku platform
https://renkulab.io
Apache License 2.0
13 stars 6 forks source link

chore(client): move verifyTitleCharacters() to optimize bundle size #3181

Closed leafty closed 1 month ago

leafty commented 1 month ago

The verifyTitleCharacters() method is the only method which imports xregexp. Moving it to a separate file allows for bundle size optimization.

Before:

build/assets/index-zwCpWK0N.js                              1,960.44 kB │ gzip: 493.50 kB │ map: 6,098.69 kB

After:

build/assets/index-TyZG-yHr.js                              1,874.07 kB │ gzip: 456.83 kB │ map: 5,793.17 kB

/deploy

RenkuBot commented 1 month ago

You can access the deployment of this PR at https://renku-ci-ui-3181.dev.renku.ch

RenkuBot commented 1 month ago

Tearing down the temporary RenkuLab deplyoment for this PR.