3 ms·
To be clear, it is esbuild that bundles not vite. esbuild index.js --bundle --outfile=build.cjs --format=cjs --platform=node You can use pkg then to make thi
by Aldipower 2y ago
To be clear, it is esbuild that bundles not vite.
esbuild index.js --bundle --outfile=build.cjs --format=cjs --platform=node
You can use pkg then to make this bundle executable.
pkg build.cjs
This is not vite. :-)
- arbol 2y agoFair point. But vite makes this easier than esbuild. I get a bundle that's immediately executable with node