dify icon indicating copy to clipboard operation
dify copied to clipboard

Add turbopack

Open ZeroZ-lab opened this issue 6 months ago • 2 comments

fix #19179

[!IMPORTANT]

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

Screenshots

Before After
... ...

Checklist

  • [ ] This change requires a documentation update, included: Dify Document
  • [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [x] I've updated the documentation accordingly.
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

ZeroZ-lab avatar Jun 05 '25 11:06 ZeroZ-lab

Great work! It's a long-awaited improvement for every developer.

40% to 70% time saved in cold launching to /app page by running pnpm dev on my Mac laptops:

  • M1 pro, 49s->29s
  • M4 max, 44.3->13.4s

bowenliang123 avatar Jun 05 '25 11:06 bowenliang123

hi @crazywoola

This PR has a lot of changes. Please help me to review the code, thank you very much! Main changes:

  1. SVG files have been moved to the public directory.
  2. Adjusted CSS and component references.
  3. VERY IMPORTANT! The development experience needs to be adjusted to use the VSCode debugger mode, which is quite different from the original. Please provide suggestions from the front-end development perspective.

ZeroZ-lab avatar Jun 09 '25 01:06 ZeroZ-lab

Good job. It works on my M4 mac mini without any issues.

CorrectRoadH avatar Jun 10 '25 03:06 CorrectRoadH

hi, @kauly , Thank you very much for your review, which helped me to complete this work better.

ZeroZ-lab avatar Jun 18 '25 02:06 ZeroZ-lab

Great, I tried do that, but failed on the css.

asukaminato0721 avatar Aug 06 '25 16:08 asukaminato0721