Adjust the conditional imports to the fact that wasm doesn't use https for packages

This commit is contained in:
Fábio Beirão 2023-06-05 10:50:06 +02:00
parent f1a581f5c5
commit 3482bb0108
No known key found for this signature in database
GPG key ID: 13FD3A2130278AAE
2 changed files with 6 additions and 4 deletions

View file

@ -53,9 +53,9 @@ use roc_parse::module::module_defs;
use roc_parse::parser::{FileError, Parser, SourceError, SyntaxError};
use roc_problem::Severity;
use roc_region::all::{LineInfo, Loc, Region};
use roc_reporting::report::{
to_file_problem_report_string, to_https_problem_report_string, Palette, RenderTarget,
};
#[cfg(not(target_family = "wasm"))]
use roc_reporting::report::to_https_problem_report_string;
use roc_reporting::report::{to_file_problem_report_string, Palette, RenderTarget};
use roc_solve::module::{extract_module_owned_implementations, Solved, SolvedModule};
use roc_solve_problem::TypeError;
use roc_target::TargetInfo;