withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
43.84k stars 2.28k forks source link

refactor(plugin-content): code refactor #11312

Closed Simon-He95 closed 3 days ago

Simon-He95 commented 1 week ago

Changes

Concurrent operation to copy files

Testing

Docs

changeset-bot[bot] commented 1 week ago

⚠️ No Changeset found

Latest commit: a2b01479f4f1ca3e84bbd8baa3c0477279cc2317

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

ematipico commented 1 week ago

Can you explain to us this refactor a bit more? What does it change? Why is it needed? etc.

Please argument your decisions

Simon-He95 commented 1 week ago

Can you explain to us this refactor a bit more? What does it change? Why is it needed? etc.

Please argument your decisions

I made some adjustments and waited until the promises had values, because there was no order or dependency in copying files, and I thought parallel processing would be more efficient.