compiling with --target node errors at runtime with document undefined

Description

/tmp/throwaway $ clojure -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.597"}}}' -m cljs.main --target node --output-to main.js -c hello
WARNING: hello is a single segment namespace at line 1 /private/tmp/throwaway/src/hello.cljs
/tmp/throwaway $ node main.js
"hi"

/tmp/throwaway $ clojure -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.742"}}}' -m cljs.main --target node --output-to main.js -c hello
WARNING: hello is a single segment namespace at line 1 /private/tmp/throwaway/src/hello.cljs
/tmp/throwaway $ node main.js
/private/tmp/throwaway/out/goog/dom/dom.js:2499
this.document_ = opt_document || goog.global.document || document;
^

ReferenceError: document is not defined
at new goog.dom.DomHelper (/private/tmp/throwaway/out/goog/dom/dom.js:2499:60)
at Object.goog.dom.getDomHelper (/private/tmp/throwaway/out/goog/dom/dom.js:87:38)
at new goog.net.xpc.CrossPageChannel (/private/tmp/throwaway/out/goog/net/xpc/crosspagechannel.js:94:47)
at Function.cljs$core$IFn$_invoke$arity$1 (/private/tmp/throwaway/out/clojure/browser/net.js:575:9)
at clojure$browser$net$xpc_connection (/private/tmp/throwaway/out/clojure/browser/net.js:555:43)
at clojure$browser$repl$connect (/private/tmp/throwaway/out/clojure/browser/repl.js:347:58)
at Object.<anonymous> (/private/tmp/throwaway/out/clojure/browser/repl/preload.js:7:66)
at Module._compile (internal/modules/cjs/loader.js:1123:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
at Module.load (internal/modules/cjs/loader.js:972:32)

Environment

None

Assignee

David Nolen

Reporter

Daniel Sutton

Labels

None

Approval

Triaged

Patch

None

Priority

Blocker
Configure