Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 #18412

Closed
niklander96 opened this issue May 20, 2024 · 0 comments
Closed

Suggestion for improve the code splitting mechanism #18412

niklander96 opened this issue May 20, 2024 · 0 comments

Comments

@niklander96
Copy link

Hi, everyone)
The diagram illustrates the architecture and request flow:
image
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?)

@webpack webpack locked and limited conversation to collaborators May 22, 2024
@alexander-akait alexander-akait converted this issue into discussion #18423 May 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant