`ui5 serve` is very slow, can it do a pre-bundle before serving?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- build-system, cli, performance
Direzione di ricerca
Reproduce the report with a hello-world app created using create-easy-ui5 and the ts-app preset, then run npm start and inspect the browser network tab. Compare local serving with the CDN behavior described; done should mean SAP libraries are bundled or otherwise served locally with a noticeably faster development experience and no required Internet connection.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected Behavior
A hello-world app served locally with ui5 serve should be fast.
Current Behavior
ui5 serve downloads the specified SAP libraries and serves several hundred unbundled JS files locally, which is pretty slow, even with browser cache enabled:

Dynamically Generated by UI5 Tooling - Browser Cache Enabled
I tried to mitigate the issue by downloading my own local copy of SAPUI5 runtime, with no improvements at all as the downloaded libs are not bundled either:

With Downloaded resource folder from https://tools.hana.ondemand.com/#sapui5
Here is the result with a CDN link, which is what we do at work:

With CDN [https://ui5.sap.com:](https://ui5.sap.com/)
It is quite a bit faster, but it just feels wrong that an Internet connection is required for local development. And the connection stability cannot be 100% guaranteed. We've encountered unstable/slow connection issues before.
Steps to Reproduce the Issue
- Create a
hello-worldapp withcreate-easy-ui5and thets-apppreset. - Start the app with
npm start - Inspect the network tab
Context
- UI5 Module Version (output of
ui5 --versionwhen using the CLI):2.14.10 - Node.js Version:
16.6.0 - npm Version:
8.15.1 - OS/Platform:
Ubuntu (WSL2) - Browser (if relevant):
Firefox & Edge - Other information regarding your environment (optional):
nothing
Log Output / Stack Trace
N/A
So my questions are:
- Do the
ui5-toolingteam have a plan for a more performant local development experience (create bundles/dev-bundles for libraries before serving, utilizing webpack and hmr, etc)? - If not, where can I download a bundled version of SAPUI5 runtime to work around this issue?
Thanks!
- Lingua principale
- JavaScript
- Stelle
- 511
- Fork
- 83
- Merge medio
- 1g 5h
- PR unite (30g)
- 55
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di UI5/cli
-
module/ui5-builder
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changes Apertamodule/ui5-builder module/ui5-fs module/ui5-project
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
-
module/ui5-project
Difficoltà 4/5 3-5 giorni Idoneità per principianti 64/100
-
roadmap
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
curation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
aemdemos/patients-stryker#253 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
clerk/javascript#9852 ·