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

prevent empty file from being added when file path doesn't match #185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dataseyo
Copy link

@dataseyo dataseyo commented Jan 27, 2023

Added a fs.existsSync() check before stream is created to prevent an empty .jsx file from being added when a user calls gltfjsx on a file that doesn't exist (or gets the path wrong).

  • only added three lines of code, but the indenting changed

This addresses #184

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.

1 participant