Nexe: How does nexe compare to ncc?

Created on 3 Feb 2019  路  6Comments  路  Source: nexe/nexe

nexe seems to have very similar goals as ncc.

Just curious how the two compare and when you may decide to use one versus the other?

Thanks!

Most helpful comment

IMHO, Rollup is much better and more efficient than ncc to bundle your node project into one single js file.

I'm using it before generating the binaries with Nexe.

All 6 comments

It is actually a better comparison to https://github.com/zeit/pkg which also produces an executable (like nexe) whereas ncc just packs all of your code into a single .js file.

I am looking at nexe because zeit/pkg has not had any development in some time and has TONS of open issues that make it impractical to use.

A quick look, ncc looks like a webpack wrapper for node projects. Cool!

Maybe do this if you find nexe's bundling doesn't work for you but ncc's does.
ncc build input.js -o dist && cat dist/input.js | nexe -o my-app

Thanks!

A quick look, ncc looks like a webpack wrapper for node projects. Cool!

Maybe do this if you find nexe's bundling doesn't work for you but ncc's does.
ncc build input.js -o dist && cat dist/input.js | nexe -o my-app

So instead of configuring webpack for node projects, can we use ncc directly or CAN WE RELY ON NCC ?

Not sure I understand. If you want to use ncc to provide a bundle to nexe that is up to you!

IMHO, Rollup is much better and more efficient than ncc to bundle your node project into one single js file.

I'm using it before generating the binaries with Nexe.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

affanshahid picture affanshahid  路  3Comments

antony picture antony  路  4Comments

ghost picture ghost  路  6Comments

sachinavinaw picture sachinavinaw  路  5Comments

kgaidis picture kgaidis  路  3Comments