File tree Expand file tree Collapse file tree 4 files changed +3
-19
lines changed Expand file tree Collapse file tree 4 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ pub struct RtcServe {
32
32
pub open : bool ,
33
33
/// Any proxies configured to run along with the server.
34
34
pub proxies : Vec < Proxy > ,
35
- /// Whether to disable auto-reload of the web page when a build completes.
36
- pub no_autoreload : bool ,
37
35
/// Whether to disable fallback to index.html for missing files.
38
36
pub no_spa : bool ,
39
37
/// Additional headers to include in responses.
@@ -78,7 +76,8 @@ impl RtcServe {
78
76
addresses,
79
77
prefer_address_family,
80
78
port,
81
- no_autoreload,
79
+ // auto-reload is handle by the builder options
80
+ no_autoreload : _,
82
81
headers,
83
82
no_error_reporting : _, // handled via the options, as it's only a configuration option in the case of "serve"
84
83
no_spa,
@@ -87,6 +86,7 @@ impl RtcServe {
87
86
tls_key_path,
88
87
tls_cert_path,
89
88
serve_base,
89
+ // single proxy config is being transformed into global proxies vec
90
90
proxy_backend : _,
91
91
proxy_rewrite : _,
92
92
proxy_ws : _,
@@ -106,7 +106,6 @@ impl RtcServe {
106
106
port,
107
107
open,
108
108
proxies : config. proxies . 0 ,
109
- no_autoreload,
110
109
no_spa,
111
110
headers,
112
111
ws_protocol,
Original file line number Diff line number Diff line change @@ -615,12 +615,6 @@ impl RustApp {
615
615
. context ( "error writing loader shim script" ) ?;
616
616
}
617
617
618
- let ts_output = if self . typescript {
619
- Some ( hashed_ts_name)
620
- } else {
621
- None
622
- } ;
623
-
624
618
// Check for any snippets, and copy them over.
625
619
let snippets_dir_src = bindgen_out. join ( SNIPPETS_DIR ) ;
626
620
let snippets = if path_exists ( & snippets_dir_src) . await ? {
@@ -695,8 +689,6 @@ impl RustApp {
695
689
js_output : hashed_js_name,
696
690
wasm_output : hashed_wasm_name,
697
691
wasm_size,
698
- ts_output,
699
- loader_shim_output : hashed_loader_name,
700
692
r#type : self . app_type ,
701
693
cross_origin : self . cross_origin ,
702
694
integrities : self . sri . clone ( ) ,
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ pub struct RustAppOutput {
19
19
pub wasm_output : String ,
20
20
/// The size of the WASM file
21
21
pub wasm_size : u64 ,
22
- /// The filename of the generated .ts file written to the dist dir.
23
- pub ts_output : Option < String > ,
24
- /// The filename of the generated loader shim script for web workers written to the dist dir.
25
- pub loader_shim_output : Option < String > ,
26
22
/// Is this module main or a worker.
27
23
pub r#type : RustAppType ,
28
24
/// The cross-origin setting for loading the resources
Original file line number Diff line number Diff line change @@ -275,8 +275,6 @@ pub struct State {
275
275
pub ws_state : watch:: Receiver < ws:: State > ,
276
276
/// The path to the autoreload websocket
277
277
pub ws_base : String ,
278
- /// Whether to disable autoreload
279
- pub no_autoreload : bool ,
280
278
/// Additional headers to add to responses.
281
279
pub headers : HashMap < String , String > ,
282
280
}
@@ -299,7 +297,6 @@ impl State {
299
297
serve_base,
300
298
ws_state,
301
299
ws_base,
302
- no_autoreload : cfg. no_autoreload ,
303
300
headers : cfg. headers . clone ( ) ,
304
301
} )
305
302
}
You can’t perform that action at this time.
0 commit comments