ax-vasquez / mcnuggies-blog

NextJS site & Sanity Studio code for mcnuggies.dev
http://www.mcnuggies.dev
1 stars 1 forks source link

reorder import of serializers to fix chunk loading in dev #77

Closed ax-vasquez closed 2 years ago

ax-vasquez commented 2 years ago

This PR fixes an issue that would only occur in develop mode (e.g., when the files are being watched for changes).

This issue happened because the serializers import was in the incorrect spot in the imports list and would lead to a conflict in how webpack resolved the chunks. This change fixes the issue.

Later...

We should set up linting to handle sorting the imports for us, but I'm not in that headspace at the moment.