diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-07-05 05:17:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 17:47:53 +0530 |
commit | 233e5f6feae62e2ddc4d4046479759bd0a09b3aa (patch) | |
tree | c7879ebaa3e8d30748ff196c5e46ddb0909fd81e /cli/js.rs | |
parent | 08e5606c3400d3a993c0ce6748901c56fc3db35b (diff) |
chore: rename `__runtime_js_source` to `hmr` (#24442)
Saves some keystrokes and easy to remember
```
cargo b --features hmr
```
Diffstat (limited to 'cli/js.rs')
-rw-r--r-- | cli/js.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2,17 +2,17 @@ use log::debug; -#[cfg(not(feature = "__runtime_js_sources"))] +#[cfg(not(feature = "hmr"))] static CLI_SNAPSHOT: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/CLI_SNAPSHOT.bin")); pub fn deno_isolate_init() -> Option<&'static [u8]> { debug!("Deno isolate init with snapshots."); - #[cfg(not(feature = "__runtime_js_sources"))] + #[cfg(not(feature = "hmr"))] { Some(CLI_SNAPSHOT) } - #[cfg(feature = "__runtime_js_sources")] + #[cfg(feature = "hmr")] { None } |