shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
987 stars 33 forks source link

email preview cannot detect .jsx and .js file type #103

Closed leehw123 closed 9 months ago

leehw123 commented 9 months ago

Expected Behavior

Should able to detect any file type (or allow configure using .config file), include .js and .jsx

Actual Behavior

  1. I created the BatmanEmail.tsx template with the instruction "email create BatmanEmail --out=./src/emails"
  2. Run "email preview ./src/emails", BatmanEmail show in the page
  3. Copy the BatmanEmail, renamed to Email.jsx, remove the types
  4. Run "email preview ./src/emails", only see BatmanEmail (issue)
  5. Try to change the Email back to .tsx and types, can see both

Additional Information

https://stackblitz.com/edit/jsx-email-repro-hp1ujo?file=templates%2FEmail.jsx

shellscape commented 9 months ago

Thanks for the issue. Please make sure not to remove parts of our issue templates in the future.