Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with .sql in them cannot be imported from #2836

Closed
Gerbuuun opened this issue Nov 2, 2024 · 0 comments · Fixed by #2838
Closed

Files with .sql in them cannot be imported from #2836

Gerbuuun opened this issue Nov 2, 2024 · 0 comments · Fixed by #2838

Comments

@Gerbuuun
Copy link

Gerbuuun commented Nov 2, 2024

Environment

nitro 2.10.0

Reproduction

https://stackblitz.com/edit/github-56mf2v?file=server/test.sql.ts

Describe the bug

I'm using drizzle-orm for my database and therefore my schema is written in typescript. I like to add the .sql suffix to the files so I can glob them without them being in the same folder: example.sql.ts
Since 2.10.0 this is broken.

imports like import { ... } from './example.sql' look like it can break. But it worked before

Additional context

I also tried example.pdf.ts which does work.

Logs

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant