3 ms·
You don't need a bundler with multiple .ts files any more than with multiple .js file - which is that you don't "need" one at all. Libraries especially don't a
by spankalee 3y ago
You don't need a bundler with multiple .ts files any more than with multiple .js file - which is that you don't "need" one at all.
Libraries especially don't and should be published to npm unbundled. Bundling is purely an application concern.
- nsonha 3y agoSo consumers are forced to use a bundler/ts just because some random dependency decided they're too lazy to deal with a bundler? > Bundling is purely an application concern by this logic all compiled languages' repos should just be source, no precompiled binaries.
- chii 3y agoyes. Always include source and let the user/client decide. Include a bundled version is OK, but it should be only there for convenience.
- nsonha 3y agoso explain to me again why I have to change my entire toolchain for simply consuming a library? What if I consume a wasm library written in Rust, suddenly I have to add rust into my build script? What is the point of bytecode if people are going to repeat the same build over and over again anyway?