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

fix(rollup): check raw extensions against resolved id #2838

Merged
merged 1 commit into from
Nov 2, 2024
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Nov 2, 2024

Resolves #2836

Raw plugin tries to guess type of raw asset imports based on known extensions (like .sql and .pdf)

There was an issue where we are checking the extension before full resolution. If there is a ts import like ../foo.sql (which actually resolves to ../foo.sql.ts) we were wrongly picking it as raw asset.

@pi0 pi0 self-assigned this Nov 2, 2024
@pi0 pi0 changed the title fix(rollup): check known extensions against resolved id fix(rollup): check raw extensions against resolved id Nov 2, 2024
@pi0 pi0 merged commit 51faaf3 into v2 Nov 2, 2024
5 checks passed
@pi0 pi0 deleted the fix/raw-ext branch November 2, 2024 20:25
pi0 added a commit that referenced this pull request Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Files with .sql in them cannot be imported from
1 participant