feat: make the interpreter as its own crate

This commit is contained in:
Jonathan Kelley committed 2022-02-01 15:44:08 -05:00
1 parent ee67a041d2
commit 527434b9f9
8 files changed
+20 -557

No files matched your search

+1 -1
View File
@@ -224,7 +224,7 @@ pub fn launch_with_props<P: 'static + Send>(
} else if trimmed == "index.js" {
wry::http::ResponseBuilder::new()
.mimetype("text/javascript")
.body(include_bytes!("./interpreter.js").to_vec())
.body(dioxus_interpreter_js::INTERPRTER_JS.as_bytes().to_vec())
} else {
// Read the file content from file path
use std::fs::read;