Move import statement in resources/plugins.mdx after Aside (because it's already used before it's imported...)#2581
Conversation
|
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Ah, the position of import statements is actually unimportant in MDX (and even in regular JS as it happens), which admittedly might seem a bit surprising. The way that JS module loading works is that first all const result = callFunction('x');
import { callFunction } from './somewhere';For legibility reasons you wouldn’t usually do that of course, but it’s not wrong as such. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
LOL, that reminds me of some weirdness I heard about |
|
Yeah Anyway, given this I think we can close this PR. Thanks again! 🙌 |

Description
Reason: The components imported are already used before being imported, or am I blind?
(already mentioned shortly in #2580)