Commit 1b22a53
committed
CLJS-2667: Non-Node REPL Regression - direct require of JS modules no longer works
cljs.closure/compile-input no longer needs :seed bit as
cljs.repl/load-namespaces now handles all input types.
change cljs.compiler/load-libs, global-exports-libs and libs-to-load
are not mutually exclusive.
cljs.repl/load-namespaces can now handle different types of requires
directly. If ClojureScript namespace use the normal build pipeline. If
JavaScript namespace simply add any JS dependencies and ensure the files
are on disk. Removed old hack where we had to read the file system to
get the updated module name. This possible because we now invoke
handle-js-modules (and include transitive module deps) in
cljs.repl/evaluate-form, thus all JS module requires will already be
remapped by the time we get to cljs.repl/load-namespaces.1 parent cddad10 commit 1b22a53
3 files changed
Lines changed: 32 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
1130 | | - | |
| 1130 | + | |
1131 | 1131 | | |
1132 | 1132 | | |
1133 | 1133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
193 | 213 | | |
194 | 214 | | |
195 | 215 | | |
196 | 216 | | |
197 | 217 | | |
198 | 218 | | |
199 | 219 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
207 | 229 | | |
208 | 230 | | |
209 | 231 | | |
210 | 232 | | |
211 | 233 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 234 | | |
219 | 235 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 236 | + | |
223 | 237 | | |
224 | 238 | | |
225 | 239 | | |
| |||
0 commit comments