From ee9c627cc5f92898d104e9359059b57354c9f83c Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 29 Jan 2019 11:41:28 +1000 Subject: Split out compiler snapshot (#1566) Speeds up startup time, reduces runtime heap size. --- src/js_errors.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/js_errors.rs') diff --git a/src/js_errors.rs b/src/js_errors.rs index ea94f7c0a..73116d679 100644 --- a/src/js_errors.rs +++ b/src/js_errors.rs @@ -355,6 +355,14 @@ fn parse_map_string( include_str!(concat!(env!("GN_OUT_DIR"), "/gen/bundle/main.js.map")); SourceMap::from_json(s) } + #[cfg(not(feature = "check-only"))] + "gen/bundle/compiler.js" => { + let s = include_str!(concat!( + env!("GN_OUT_DIR"), + "/gen/bundle/compiler.js.map" + )); + SourceMap::from_json(s) + } _ => match getter.get_source_map(script_name) { None => None, Some(raw_source_map) => SourceMap::from_json(&raw_source_map), -- cgit v1.2.3