zerodevx / svelte-img

High-performance responsive/progressive images for SvelteKit
https://zerodevx.github.io/svelte-img/
ISC License
300 stars 11 forks source link

Update index.js #18

Closed SaintPepsi closed 1 year ago

SaintPepsi commented 1 year ago

I was having trouble with IntelliSense not picking up the import in VSCode on my Mac.

Changing the export structure to this allowed my IntelliSense to pick up on the module and auto-import.

export default Img;
export { FxReveal, FxParallax };

@zerodevx Have you had similar issues as well or has it been fine for you?

zerodevx commented 1 year ago

I didn't notice any issues tbh. At first I thought the original vs your edits are similar. But a quick Google search returned this article: https://jakearchibald.com/2021/export-default-thing-vs-thing-as-default/

🤷

Btw, can you npm run format the code?