I am not sure if this is a bug or a feature request.
nbb v1.3.196
Ubuntu 22.04
Node v20.17.0
If you run nbb bundle printme.cljs -o printme.mjs and run the resulting script with node printme.mjs, any reference to nbb.core/*file* doesn't survive.
(ns printme
(:require [nbb.core :refer [*file*]]))
(print *file*)
npx nbb bundle printme.cljs -o printme.mjs
npx nbb printme.cljs # outputs the path to the script
node printme.mjs # outputs nil
I expected *file* to be the .mjs script's location.
I can hack around this for now of course but I thought I'd file it just in case.
I am not sure if this is a bug or a feature request.
nbb v1.3.196
Ubuntu 22.04
Node v20.17.0
If you run
nbb bundle printme.cljs -o printme.mjsand run the resulting script withnode printme.mjs, any reference tonbb.core/*file*doesn't survive.I expected
*file*to be the .mjs script's location.I can hack around this for now of course but I thought I'd file it just in case.