mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Support importing local files in the REPL
This commit is contained in:
parent
e500d664fd
commit
52f84910a7
5 changed files with 57 additions and 10 deletions
|
@ -203,6 +203,9 @@ pub async fn entrypoint_from_js(src: String) -> String {
|
|||
ReplAction::Exit => {
|
||||
"To exit the web version of the REPL, just close the browser tab!".to_string()
|
||||
}
|
||||
ReplAction::FileProblem { .. } => {
|
||||
"The web version of the REPL cannot import files... for now!".to_string()
|
||||
}
|
||||
ReplAction::Nothing => String::new(),
|
||||
ReplAction::Eval { opt_mono, problems } => {
|
||||
let opt_output = match opt_mono {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue