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

[Bug]: 项目启动时间过久 #5829

Open
urielvan opened this issue Jun 14, 2024 · 2 comments
Open

[Bug]: 项目启动时间过久 #5829

urielvan opened this issue Jun 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@urielvan
Copy link

版本信息

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 12th Gen Intel(R) Core(TM) i7-1255U
    Memory: 4.14 GB / 15.64 GB
  Browsers:
    Edge: Chromium (125.0.2535.92)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    @modern-js/app-tools: 2.53.0 => 2.53.0 
    @modern-js/eslint-config: 2.53.0 => 2.53.0
    @modern-js/runtime: 2.53.0 => 2.53.0
    @modern-js/tsconfig: 2.53.0 => 2.53.0

问题详情

npm start 启动之后虽然很快就显示编译完成,但是实际浏览器中依然要等很久才能实际看到内容。

image
如图编译只耗时了3秒左右
image
但是实际需要等上半分多钟才能看到,并且由于链接中仅是一个最小复现,实际项目中随着文件数量增加,目前需要等待的时间已经达到了2到3分钟

复现链接

https://github.com/urielvan/modern-js-example

复现步骤

执行 npm start,在显示链接后打开浏览器查看

@urielvan urielvan added the bug Something isn't working label Jun 14, 2024
@zllkjc
Copy link
Member

zllkjc commented Jun 14, 2024

这看起来像是个是网络问题。

@urielvan
Copy link
Author

这看起来像是个是网络问题。

image
@zllkjc 我觉得不是网络问题,如图所示,就第一次请求特别耗时,后续再怎么刷新都能很流畅地加载完成

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants