dify
dify copied to clipboard
Add turbopack
fix #19179
[!IMPORTANT]
- Make sure you have read our contribution guidelines
- Ensure there is an associated issue and you have been assigned to it
- 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) andcd web && npx lint-staged(frontend) to appease the lint gods
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
hi @crazywoola
This PR has a lot of changes. Please help me to review the code, thank you very much! Main changes:
- SVG files have been moved to the public directory.
- Adjusted CSS and component references.
- 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.
Good job. It works on my M4 mac mini without any issues.
hi, @kauly , Thank you very much for your review, which helped me to complete this work better.
Great, I tried do that, but failed on the css.