Skip to content

Treat remote.ts as a remote module #16318

Description

@Rich-Harris

Describe the problem

Often I'll have a route with a single remote module, like an index.remote.ts alongside my +page.svelte. The index feels superfluous

Describe the proposed solution

Treat a file as a remote module if basename.split('.').includes('remote'). (This would also capture stuff.remote.test.ts, once we come up with a good testing story around RFs, but that's presumably fine as long as it doesn't export anything?)

Alternatives considered

No response

Importance

nice to have

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions