Commit 6c3276e
committed
CLJS-3237: compiling with --target node errors at runtime with document undefined
The problem was uncovered by the change in default-compile to pull in all relevant
compiler options from repl-options returned from the repl-env.
The issue was that --target node would still use the browser-repl repl-env which
sets :browser-repl true.
Add a target->repl-env helper that looks at the target and returns the true
repl-env in all cases.
This also means you can start a node REPL now with `clj -m cljs.main -t node -r`
Fixes the later half of the Quick Start1 parent 6a6e4e3 commit 6c3276e
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
311 | 318 | | |
312 | 319 | | |
313 | 320 | | |
| |||
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
323 | | - | |
| 330 | + | |
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
| |||
350 | 357 | | |
351 | 358 | | |
352 | 359 | | |
353 | | - | |
| 360 | + | |
354 | 361 | | |
355 | 362 | | |
356 | 363 | | |
| |||
487 | 494 | | |
488 | 495 | | |
489 | 496 | | |
490 | | - | |
| 497 | + | |
491 | 498 | | |
492 | 499 | | |
493 | 500 | | |
| |||
0 commit comments