diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-11-02 13:51:56 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 13:51:56 +1100 |
commit | fdcc78500cc1aff8c87d76abd1692e79977ac9cc (patch) | |
tree | b3ce97db2d23344c9469d9488097601058b5e0e5 /cli/op_fetch_asset.rs | |
parent | 3558769d4654aad478804e506ccdcac38881dac1 (diff) |
refactor(cli): migrate runtime compile/bundle to new infrastructure (#8192)
Fixes #8060
Diffstat (limited to 'cli/op_fetch_asset.rs')
-rw-r--r-- | cli/op_fetch_asset.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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<String, PathBuf>, ) -> impl Fn(Rc<RefCell<OpState>>, BufVec) -> Op { |