Suggestion for improve the code splitting mechanism #18423
Unanswered
niklander96
asked this question in
Q&A
Replies: 1 comment
-
You can write a custom plugin to solve it, I don't think we need an official option for it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, everyone)
The diagram illustrates the architecture and request flow:
We need a simple way to separate the JS bundle of the solution into different folders. This way, in the BFF, we can check the requested part of the FE by root: if the request is for the content of a folder, for example, '/secure/..', then we can verify at the BFF level whether the user is authenticated.
This is necessary so that we do not return the entire SPA with potentially sensitive information for unauthenticated users.
Do you plan to enhance the code splitting mechanism to specify the folder where js chunks should be placed?) Do you have any recommendations?)
Beta Was this translation helpful? Give feedback.
All reactions