这是indexloc提供的服务,不要输入任何密码
Skip to content

Create babel plugin to handle lazy loading #4

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

Merged
merged 10 commits into from
Jun 20, 2024

Conversation

Valerioageno
Copy link
Member

@Valerioageno Valerioageno commented Jun 19, 2024

This PR is the first step for a full working lazy function.

For this feature the tuono lib exposes a lazy function that actually does nothing. The heavy work is done bundling side.

For the client side generated code the tuono's lazy function will be translated to the react's version doc.

For the server side generated code the lazy function will be translated to a static import.

This feature slice is meant to work just with the automatically generated routeTree.gen.ts file. It is not ready for a user side usage.

@Valerioageno Valerioageno force-pushed the add-route-lazy-loading branch from 53686b3 to 3d95251 Compare June 19, 2024 18:56
@Valerioageno Valerioageno self-assigned this Jun 20, 2024
@Valerioageno Valerioageno force-pushed the add-route-lazy-loading branch from a99188c to a4443f3 Compare June 20, 2024 17:02
@Valerioageno Valerioageno force-pushed the add-route-lazy-loading branch 2 times, most recently from 1cbc247 to 4bf3bd2 Compare June 20, 2024 17:34
@Valerioageno Valerioageno merged commit f37cb70 into main Jun 20, 2024
9 checks passed
@Valerioageno Valerioageno deleted the add-route-lazy-loading branch June 20, 2024 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant