Commit ff64a4c
committed
node: allow preload modules with -i
This gives us the ability to preload when using the node repl. This can
be useful for doing things like creating aliases.
Fixes: #4661
PR-URL: #4696
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 8d0ca10 commit ff64a4cCopy full SHA for ff64a4c
File tree
Expand file treeCollapse file tree
3 files changed
+16
-1
lines changedOpen diff view settings
Filter options
- src
- test
- fixtures
- parallel
Expand file treeCollapse file tree
3 files changed
+16
-1
lines changedOpen diff view settings
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
140 | 140 | |
141 | 141 | |
142 | 142 | |
| 143 | + |
143 | 144 | |
144 | 145 | |
145 | 146 | |
|
Collapse file
test/fixtures/define-global.js
Copy file name to clipboard+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
Collapse file
test/parallel/test-preload.js
Copy file name to clipboardExpand all lines: test/parallel/test-preload.js+14-1Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | | - |
| 2 | + |
3 | 3 | |
4 | 4 | |
5 | 5 | |
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
| ||
73 | 74 | |
74 | 75 | |
75 | 76 | |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
76 | 89 | |
77 | 90 | |
78 | 91 | |
|
0 commit comments