alephjs / aleph.js

The Full-stack Framework in Deno.
https://aleph.deno.dev/
MIT License
5.26k stars 168 forks source link

Improve support for extensions. #543

Closed vikaskaliramna0 closed 1 year ago

vikaskaliramna0 commented 1 year ago

I love file names like Constructor.TS instead of constructor.ts. But Aleph Compiler does not support any uppercase extensions.

ije commented 1 year ago

just check the code, the compiler is case-insensitive: https://github.com/alephjs/aleph-compiler/blob/2b916d2a4e13df0cc7cb9f2abee927d4f13ba132/src/swc.rs#L391

ije commented 1 year ago

or you mean the FS router does support .TS?

vikaskaliramna0 commented 1 year ago

I don't know why but it doesn't work for me.

For example, if I create a file Header.TSX containing any component, it won't import. The Command Line stuck on Download http://localhost:8000/components/Header.TSX?ssr&v=lf10m52m.

please help.