Fork me on GitHub
#squint
<
2022-10-12
>
lemuel16:10:48

Really enjoying using squint. Is there a way to output .js files rather than .mjs (or .jsx)? I’m handling it with a script at the moment

chromalchemy16:10:15

I need this too. Photoshop wants .psjs files of all things 🙈.

Mario Trost21:01:46

oh looks like this is solved already, cool cool 😄

borkdude16:10:10

@mail188 We could add an option for it, issue (+ optional PR) welcome

👍 1
borkdude16:10:56

The .jsx extension is automatically used when there is JSX in the JavaScript output. I think we should keep that regardless of the option, right?

lemuel16:10:17

.jsx works fine with Next JS. It’s the .mjs files that I need to convert

lilactown16:10:36

it really depends on how you configure your build tool. in a previous life, on all my projects I used .js for everything and let webpack and babel sort it out