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: error when same file destination in build mode #1833

Merged
merged 1 commit into from
Dec 5, 2020
Merged

fix: error when same file destination in build mode #1833

merged 1 commit into from
Dec 5, 2020

Conversation

ZYSzys
Copy link
Contributor

@ZYSzys ZYSzys commented Dec 5, 2020

Changes

Throw error if there are multiple files built to the same file destination when running snowpack build.

Refs: #1770

Before: no error throw if there were two files foo.js and foo.ts built to the same foo.js

After:
Screen Shot 2020-12-05 at 22 49 04

Testing

It seems that there are no tests have tested the error condition in our current test dir, and I'm not sure how to add tests for some error condition ?
I will try to add tests if someone can give me a tip :).

Docs

bug fix only

@vercel
Copy link

vercel bot commented Dec 5, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pikapkg/snowpack/a8smzyv0c
✅ Preview: https://snowpack-git-fix-same-file-dest-build.pikapkg.vercel.app

@FredKSchott
Copy link
Owner

oh brilliant feature! LGTM

@FredKSchott FredKSchott merged commit 12afdd8 into FredKSchott:main Dec 5, 2020
@ZYSzys ZYSzys deleted the fix-same-file-dest-build branch December 6, 2020 14:54
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.

2 participants