Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion for improve the code splitting mechanism #29059

Closed
niklander96 opened this issue May 15, 2024 · 1 comment
Closed

Suggestion for improve the code splitting mechanism #29059

niklander96 opened this issue May 15, 2024 · 1 comment
Labels

Comments

@niklander96
Copy link

niklander96 commented May 15, 2024

Hi, everyone)
The diagram illustrates the architecture and request flow:
ARCH  BFF with Secure SPA Part
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?)

@niklander96 niklander96 changed the title React. webpack Suggestion for improve the code splitting mechanism May 15, 2024
@rickhanlonii
Copy link
Member

React isn't a bundler

@rickhanlonii rickhanlonii closed this as not planned Won't fix, can't repro, duplicate, stale May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants