Client-side module caching #8463
pavlovp
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
we are considering using NX,
Can we achieve runtime module caching in NX? - we have many libraries under our monorepo - each of them is built as separate System.js bundle. The main 'app' is lightweight - it contains import map that contains reference to all libraries. The libraries are resolved in runtime.
The main benefit of this setup is great client-side caching. When we make a change in a single library and this gets re-built and re-deployed, the client observes change in the main 'app' (import map) and the bundle of library that got changed.
This allows client to cache most of the libraries.
The code that needs to be re-downloaded is main 'app' + the library that did change.
Is there a way to achieve this using Nx?
Are there plans to implement similar setup?
Beta Was this translation helpful? Give feedback.
All reactions