pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.42k stars 290 forks source link

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

Open dataseyo opened 1 year ago

dataseyo commented 1 year ago

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).

This addresses #184