kit: Please don't use underscore at the beginning of the filenames that Kit produces

Describe the problem

As asked in https://github.com/sveltejs/kit/pull/1370 please many of us ask you not to use underscore at the beginning of the name of the files that kit produces (there are many problems, with Golang but not only).

Describe the proposed solution

Don’t use underscore but any other character (except .) or nothing at all, example: instead of __layout.js simply layout.js.

Importance

would make my life easier

@Hugome, @feedmeapples, @rohfle.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 15 (10 by maintainers)

Most upvoted comments

One is generated from the other. I don’t know that it’d be that easy to change. I’m sure you could, but it adds more complexity and overhead. E.g. if you’re looking at the output file it’s harder to tell where it came from if the name doesn’t match the input file, you could end up having two files trying to write to the same place, etc. I don’t think it’d necessarily be easier than fixing Go and is less correct of a solution

The related Go issue is marked as “Proposal Accepted,” so it’s marked to be fixed on their end. https://github.com/golang/go/issues/43854#issuecomment-819722769

Go should be fixed. We’re not changing SvelteKit to workaround someone else’s bug. Since there appears to be potential workarounds (see https://github.com/sveltejs/kit/pull/1370#issuecomment-938065899), and this issue is not actually a SvelteKit bug, closing.