From fdcc78500cc1aff8c87d76abd1692e79977ac9cc Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 2 Nov 2020 13:51:56 +1100 Subject: refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192) Fixes #8060 --- cli/op_fetch_asset.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cli/op_fetch_asset.rs') diff --git a/cli/op_fetch_asset.rs b/cli/op_fetch_asset.rs index 3ff8b782f..dcb54cde5 100644 --- a/cli/op_fetch_asset.rs +++ b/cli/op_fetch_asset.rs @@ -17,8 +17,6 @@ pub fn get_asset(name: &str) -> Option<&'static str> { }; } match name { - "system_loader.js" => Some(include_str!("system_loader.js")), - "system_loader_es5.js" => Some(include_str!("system_loader_es5.js")), "bootstrap.ts" => Some("console.log(\"hello deno\");"), "typescript.d.ts" => inc!("typescript.d.ts"), "lib.dom.d.ts" => inc!("lib.dom.d.ts"), @@ -85,6 +83,11 @@ pub fn get_asset(name: &str) -> Option<&'static str> { /// Warning: Returns a non-JSON op dispatcher. Must be manually attached to /// JsRuntime. +/// +/// TODO(@kitsonk) this is only used when building the snapshot, and needs to +/// be refactored somewhere else. It is no longer used by `main.rs` and +/// therefore requires the allow unused. +#[allow(unused)] pub fn op_fetch_asset( custom_assets: HashMap, ) -> impl Fn(Rc>, BufVec) -> Op { -- cgit v1.2.3