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

Feat: support lazy compile of routes #6974

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

ClarkXia
Copy link
Collaborator

Enable routes compilation will help to optimize the dev startup performance of an application with a large number of pages, each route will only be built when it is actually accessed.
This is not to be confused with webpack's experimental.lazyCompilation, which can also be enabled by user configuration.

@ClarkXia ClarkXia changed the title [WIP] Feat: support lazy compile of routes Feat: support lazy compile of routes Aug 29, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 60.86957% with 36 lines in your changes missing coverage. Please review.

Please upload report for BASE (release/next@61d7c95). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...kages/ice/src/middlewares/proxyModuleMiddleware.ts 59.61% 21 Missing ⚠️
packages/ice/src/bundler/config/middlewares.ts 55.00% 8 Missing and 1 partial ⚠️
packages/ice/src/createService.ts 33.33% 2 Missing and 2 partials ⚠️
packages/ice/src/routes.ts 75.00% 2 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##             release/next    #6974   +/-   ##
===============================================
  Coverage                ?   79.19%           
===============================================
  Files                   ?      221           
  Lines                   ?    19674           
  Branches                ?     2511           
===============================================
  Hits                    ?    15581           
  Misses                  ?     4050           
  Partials                ?       43           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from release/next to master October 8, 2024 08:15
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.

3 participants