News for hackers. Stuff that matters.
Re:Build your own web framework by saghm on Saturday July 30, 2022 @03:32AM (#32285021)
Not sure if they edited their comment (although it seems unlikely given that your comment was four hours later), but that sounds exactly like what they said they did. Maybe I'm old-fashioned, but the idea that I need to upload a plaintext file to have it converted to another plaintext file so I can download it instead of just having a command to run locally seems almost surreal.
Re:Build your own web framework by cercatrova on Saturday July 30, 2022 @03:04PM (#32289384)
There is a command to run locally, `babel`. It works in the command line as well as part of a build tool. It seemed me that the parent however didn't want to spend more time learning all that if they needed to convert just one file.
Re:Build your own web framework by jeshin on Sunday July 31, 2022 @04:28PM (#32298518)
yeah, I did get it to transpile with the babel command, but I couldn't get it to accept the babel-env preset, so it just transpiled from modern javascript to modern javascript, which is not very useful