I wonder how hard it would be for Browsers to natively strip TypeScript syntax from the .ts files without checking and run them as .js
So no compile time checks and no runtime checks? What would the advantage of types be?
Writing JavaScript without a build system
71–80 of 187 posts
Re: Writing JavaScript without a build system
#72Earlier quoted context omitted.
The problem with build systems isn't the existence of a build step but the necessity of the build system and its configuration. Typescript is baffling-ly complex to use compared to something like python.
> tsc build What's complex about that?
Re: Writing JavaScript without a build system
#73Re: Writing JavaScript without a build system
#74If anyone's looking for something like a framework that works with buildless workflows you might check out the project I work on: Lit ( https://lit.dev ) Lit gives you reactive components, declarative HTML templates, runtime encapsulated DOM and styles, interoperability with frameworks and HTML via web components, and a lot more - with no required build tools at all. We take great care to make sure our libraries are…
vuejs can work without build system though. it's mentioned in the article, and I used to wwork that way. Eventually i made my own (minimal) build system though using quickjs and esbuild. Precompiling templates and minimising can be useful.
Re: Writing JavaScript without a build system
#75Re: Writing JavaScript without a build system
#76Re: Writing JavaScript without a build system
#77All those extraneous elements to Javascript are a real turn-off. Python: batteries mostly included. Javascript: feels like you need to drag a dozen suitcases along anytime you embark on any non-trivial project.
Re: Writing JavaScript without a build system
#78Re: Writing JavaScript without a build system
#79The trade off is that because it’s actually reading JS from the zip files at runtime, a lot of Node packages don’t play nicely with it. Once you get things set up, it’s great, but getting there can be exhausting for a hobby project.
Re: Writing JavaScript without a build system
#80Use Vite and don't look back. It's so refreshing compared to Webpack.
You’re missing the entire point. That’s still a build process and still has additional overhead for both development and deployment.
The author even shouts out esbuild as being "a little more stable", which Vite uses under the hood.