Re:Ncc: Node.js Compiler Collection
by Rauchg on Monday November 26, 2018 @04:32PM
(#18536984)
The goal is precisely to not just bundle, but incorporate important optimizations like the V8 Compile Cache (https://github.com/zeit/ncc/issues/51), which is what inspired the project and name to begin with.
[ Parent
| on HN ]
Seems like it'd be better as a webpack plugin. It's still not a compiler, by the way, nor a compiler collection, even with this feature included.
It is a compiler. Literally
It seems to me that the compiler here is V8.
One of these things is not like the other.
Itβs definitely possible to extract some internals as plugins, but not all currently.
It would make more sense as a collection of plugins, and perhaps exposed as a preset.
But the intent is to precisely remove the extra setup, when all you need to do is publish your Node.js codebase as a single file.