Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

single quote in a file path leads to invalid module content for auto-routes #785

@nondescripte

Description

@nondescripte

if any route's file path has a single quote in it, including if in a parent folder of the project directory, the generatePageImport function will just wrap it as is in single quotes (for async import mode), leading to malformed output and vite fails.

Image

perhaps the wrapping in single quotes could be changed to double quotes, or the filepath be correctly escaped for single quotes before being wrapped in import('${filepath}').

Metadata

Metadata

Assignees

Labels

🐞 bugthis isn't working as expected

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions