summaryrefslogtreecommitdiff
path: root/runtime/shared.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/shared.rs')
-rw-r--r--runtime/shared.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/shared.rs b/runtime/shared.rs
index 1f24fec0b..35712dfb3 100644
--- a/runtime/shared.rs
+++ b/runtime/shared.rs
@@ -56,12 +56,7 @@ extension!(runtime,
customizer = |ext: &mut Extension| {
#[cfg(not(feature = "exclude_runtime_main_js"))]
{
- ext.esm_files.to_mut().push(ExtensionFileSource {
- specifier: "ext:runtime_main/js/99_main.js",
- code: ExtensionFileSourceCode::IncludedInBinary(
- include_str!("./js/99_main.js"),
- ),
- });
+ ext.esm_files.to_mut().push(ExtensionFileSource::new("ext:runtime_main/js/99_main.js", include_str!("./js/99_main.js")));
ext.esm_entry_point = Some("ext:runtime_main/js/99_main.js");
}
}