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

[NEXT-1235] Build size increased a lot since version 13.4.4-canary.2 #50312

Closed
1 task done
bbsweb opened this issue May 25, 2023 · 2 comments · Fixed by #50324
Closed
1 task done

[NEXT-1235] Build size increased a lot since version 13.4.4-canary.2 #50312

bbsweb opened this issue May 25, 2023 · 2 comments · Fixed by #50324
Assignees
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.

Comments

@bbsweb
Copy link

bbsweb commented May 25, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #22 SMP Tue Jan 10 18:39:00 UTC 2023
Binaries:
  Node: 18.14.2
  npm: 9.5.0
  Yarn: 1.22.19
  pnpm: N/A
Relevant packages:
  next: 13.4.4-canary.2
  eslint-config-next: 13.4.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.0.4

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue or a replay of the bug

https://codesandbox.io/p/sandbox/build-size-increased-a-lot-1f3wbj

To Reproduce

in version 13.4.4-canary.1, build size is normal

Route (app)                                Size     First Load JS
─ ○ /                                      141 B          77.2 kB
+ First Load JS shared by all              77.1 kB
  ├ chunks/139-de01d39b7894378c.js         24.7 kB
  ├ chunks/2443530c-d4a6bd7fc7f21e3c.js    50.5 kB
  ├ chunks/main-app-86b9b326f9ccb644.js    211 B
  └ chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

Route (pages)                              Size     First Load JS
─ ○ /404                                   178 B          83.8 kB
+ First Load JS shared by all              83.6 kB
  ├ chunks/main-bbf9124d48654571.js        81.8 kB
  ├ chunks/pages/_app-c544d6df833bfd4a.js  192 B
  └ chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

when update to 13.4.4-canary.2 or later, build size increased a lot

Route (app)                                Size     First Load JS
─ ○ /                                      145 B           122 kB
+ First Load JS shared by all              122 kB
  ├ chunks/2443530c-d4a6bd7fc7f21e3c.js    50.5 kB
  ├ chunks/488-441ec15fc214c3f1.js         24.7 kB
  ├ chunks/framework-6f53985fc108c1c2.js   45.1 kB
  ├ chunks/main-app-cee8edc8d4289322.js    218 B
  └ chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

Route (pages)                              Size     First Load JS
─ ○ /404                                   181 B          74.7 kB
+ First Load JS shared by all              74.5 kB
  ├ chunks/framework-6f53985fc108c1c2.js   45.1 kB
  ├ chunks/main-5f68985cd09b61f4.js        27.6 kB
  ├ chunks/pages/_app-b555d5e1eab47959.js  195 B
  └ chunks/webpack-8074fabf81ca3fbd.js     1.61 kB

Describe the Bug

build size increased a lot

Expected Behavior

reduce build size

Which browser are you using? (if relevant)

Chrome 112.0.5615.121

How are you deploying your application? (if relevant)

next start

NEXT-1235

@bbsweb bbsweb added the bug Issue was opened via the bug report template. label May 25, 2023
@github-actions github-actions bot added the area: app App directory (appDir: true) label May 25, 2023
@balazsorban44 balazsorban44 changed the title Build size increased a lot since version 13.4.4-canary.2 [NEXT-1235] Build size increased a lot since version 13.4.4-canary.2 May 25, 2023
@DuCanhGH
Copy link
Contributor

DuCanhGH commented May 25, 2023

Some change caused Next to start bundling react-dom twice, likely to be #50128.

@huozhi huozhi assigned huozhi and unassigned timneutkens May 25, 2023
@kodiakhq kodiakhq bot closed this as completed in #50324 May 25, 2023
kodiakhq bot pushed a commit that referenced this issue May 25, 2023
hydRAnger pushed a commit to hydRAnger/next.js that referenced this issue Jun 12, 2023
@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants