feat: setup a typescript build

This commit is contained in:
Jonathan Kelley committed 2022-01-12 07:34:37 -05:00
1 parent 6771ead13e
commit 5bf6c96f9f
6 files changed
+1111 -449

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ pub fn launch_with_props<P: 'static + Send>(
} else if path.trim_end_matches('/') == "index.html/index.js" {
wry::http::ResponseBuilder::new()
.mimetype("text/javascript")
.body(include_bytes!("./index.js").to_vec())
.body(include_bytes!("../../jsinterpreter/interpreter.js").to_vec())
} else {
wry::http::ResponseBuilder::new()
.status(wry::http::status::StatusCode::NOT_FOUND)