ui5 serve
is very slow, can it do a pre-bundle before serving?
#647
Labels
enhancement
New feature or request
Expected Behavior
A
hello-world
app served locally withui5 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
hello-world
app withcreate-easy-ui5
and thets-app
preset.npm start
Context
ui5 --version
when using the CLI):2.14.10
16.6.0
8.15.1
Ubuntu (WSL2)
Firefox & Edge
nothing
Log Output / Stack Trace
N/A
So my questions are:
ui5-tooling
team have a plan for a more performant local development experience (create bundles/dev-bundles for libraries before serving, utilizing webpack and hmr, etc)?Thanks!
The text was updated successfully, but these errors were encountered: