sveltejs / vite-plugin-svelte

Svelte plugin for http://vitejs.dev/
MIT License
843 stars 103 forks source link

Infix logic should only apply to basename #919

Closed Rich-Harris closed 4 months ago

Rich-Harris commented 4 months ago

Describe the bug

The infix logic for allowing *.svelte.* files (e.g. thing.svelte.test.js) to be processed by Svelte fails when the directory contains the infix, for example because the project name is learn.svelte.dev. It should only apply to the basename

Reproduction URL

N/A (will PR, one sec)

Reproduction

No response

Logs

No response

System Info

next