News for hackers. Stuff that matters.
Re:Today’s Javascript, from an outsider’s perspective by vimslayer on Tuesday May 26, 2020 @07:21PM (#23317595)
Sure, it's just that the person you were answering to--and this whole thread really--seem to be advocating for just importing module files without any sort of build step. Without a build step I also assumed tree shaking wouldn't be an option. Tools that handle tree shaking, like Webpack and Rollup, aren't really the simplest of JS tools anyway so if we are talking about simplicity of dev experience, I'd argue that multiple direct file imports--how inconvenient it may be--is still _simpler_ to get right than "single namespace import" + tree shaking.

There are no comments on this comment yet.