Earlier quoted context omitted.
I see you have never worked on a C/C++ project.
Yeah this appears to be more or less the essential complexity of build+link
Why we switched from Webpack to Vite
151–160 of 229 posts
Re: Why we switched from Webpack to Vite
#152Earlier quoted context omitted.
Most of the build tooling gets installed along the way. The compiled JS is hundreds of bytes at most, usually because React creates a bunch of boilerplate for you (a basic CSS file, an application, a web worker, etc) which you may remove.
But why would you? This is the silliest way to judge something ever: what practical web application is anyone routinely building with no CSS, web workers etc.
Re: Why we switched from Webpack to Vite
#153Webdev truly is one of a kind. Not only do you have your source code, you also have your build code, oddly dictating the organization of your source code. For extra fun, some libraries don't build with build system a, others require build system b, when you're lucky enough to have a working mix, changing build systems is better to be avoided. Of course periodically the officially blessed build system for your used li…
For personal projects I just use plain javaScript, ES5 even, without any compile steps, everything loads instantly and runs on every browser that supports JavaScript, and the development can be set up in any environment/OS without headaches. I do use minification for production but that is not really necessary if the browser supports loading JS-script tags async (all major browsers). The bundle gets very small withou…
I wouldn’t give up all my structural type inference for the 1:1 you’re describing, but it is tempting.
Re: Why we switched from Webpack to Vite
#154Re: Why we switched from Webpack to Vite
#155Earlier quoted context omitted.
You enable sourcemaps on Webpack with `devtool = "eval-source-map"` in your config, and I'm not sure how you expect transpiling to be a problem with testing considering your tests are also transpiled.
Do you compile and run your unit tests with webpack?
Re: Why we switched from Webpack to Vite
#156Earlier quoted context omitted.
Is it? I know there's no sizeof, but what would be sizeof(char) in JS? 1 byte?
The answer to this question is complicated. JavaScript char encoding is roughly UTF-16, which is 2-bytes, but the byte you read may have been part of a surrogate so, depending on your first one, you must read the next 2 bytes to complete your character. And of course, this basic explanation doesn’t really do justice to answering your question, because depending on your definition of what a “character” is, you may nee…
Re: Why we switched from Webpack to Vite
#157Re: Why we switched from Webpack to Vite
#158In the Ember.js ecosystem there's a really exciting new build tool project called "mho", that replaces webpack and uses a novel strategy running in a service worker to interpret native javascript modules with minimal overhead & near instant rebuilds (disclaimer I'm not familiar with how snowpack works under the hood). https://github.com/ef4/mho https://www.youtube.com/watch?v=09USvAy7w9g https://sqwok.im/p/TleLmpJ9BF…
Most companies burn money on a total re-write when old tech gets too hard to support. Ember has never accepted this. I love that!
Re: Why we switched from Webpack to Vite
#159Re: Why we switched from Webpack to Vite
#160Earlier quoted context omitted.
> The webdev ecosystem is so broken Allow me to correct this statement: The Javascript ecosystem is so broken. Working with Clojurescript and Elm is an experience that will make most developers fall in love with web development again.
Hate to break it to you but Clojurescript, Elm and the whole paradigm of "compile to JS" languages are part of what is broken about the javascript ecosystem. So much unnecessary complexity and energy wasted making javascript pretend to be something it isn't and to make it do things it was never meant to do, pressing a small, simple and powerful scripting language into the service of the profane eldritch abomination t…