mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Revert "refactor(core): cleanup feature flags for js source inclusion… (#19490)
… (#19463)"
This reverts commit ceb03cfb03
.
This is being reverted because it causes 3.5Mb increase in the binary
size,
due to runtime JS code being included in the binary, even though it's
already snapshotted.
CC @nayeemrmn
This commit is contained in:
parent
82dd90f98d
commit
60bf79c184
33 changed files with 386 additions and 256 deletions
|
@ -13,3 +13,10 @@ pub fn deno_isolate_init() -> Snapshot {
|
|||
debug!("Deno isolate init with snapshots.");
|
||||
Snapshot::Static(RUNTIME_SNAPSHOT)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "include_js_files_for_snapshotting"))]
|
||||
pub static SOURCE_CODE_FOR_99_MAIN_JS: &str = include_str!("js/99_main.js");
|
||||
|
||||
#[cfg(feature = "include_js_files_for_snapshotting")]
|
||||
pub static PATH_FOR_99_MAIN_JS: &str =
|
||||
concat!(env!("CARGO_MANIFEST_DIR"), "/js/99_main.js");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue