You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some JavaScript libraries and tools can't handle .mjs files (e.g. Remix, Photoshop were mentioned in Slack).
It would be great to have a way to tell squint what file extension it uses to create files with non-standard extensions possible (Photoshop uses .psjs).
Files containing #jsx should probably be constrained to .jsx (and .tsx?).
The text was updated successfully, but these errors were encountered:
Files containing #jsx are emitted as .jsx already automatically. If not, please provide a repro.
The extension can be configured using the --extension option:
$ npx squint compile --help
Usage: squint compile <files> <opts>
Options:
--elide-imports: do not include imports
--elide-exports: do not include exports
--extension: default extension for JS files
It seems that I missed some iterations, and everything I wished for here is already implemented.
And regarding the #jsx I didn't make myself clear: I meant, that files with #jsx in it should be ignored when changing the file extension and still compile to .jsx files. So exactly as it is already implemented!
Some JavaScript libraries and tools can't handle
.mjs
files (e.g. Remix, Photoshop were mentioned in Slack).It would be great to have a way to tell squint what file extension it uses to create files with non-standard extensions possible (Photoshop uses
.psjs
).Files containing
#jsx
should probably be constrained to.jsx
(and.tsx
?).The text was updated successfully, but these errors were encountered: