net.coruscation.js4clj.embedding

embed

(embed class-dir)
Call it during building the uberjar file.
It bundles *js-cwd*/node_modules into the jar file, generates a manifest identified by *js-resource-path*.
If the manifest file exists in classpath, js4clj will extract the node_modules bundled in the uberjar file, and use the extracted path as *js-cwd*.
Useful when you want to bundled all resources into an uberjar.