mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Reland "refactor(core): cleanup feature flags for js source inclusion" (#19519)
Relands #19463. This time the `ExtensionFileSourceCode` enum is preserved, so this effectively just splits feature `include_js_for_snapshotting` into `exclude_js_sources` and `runtime_js_sources`, adds a `force_include_js_sources` option on `extension!()`, and unifies `ext::Init_ops_and_esm()` and `ext::init_ops()` into `ext::init()`.
This commit is contained in:
parent
a181ceb0e3
commit
28a4f3d0f5
33 changed files with 290 additions and 326 deletions
|
@ -26,7 +26,7 @@ async fn main() -> Result<(), AnyError> {
|
|||
PermissionsContainer::allow_all(),
|
||||
WorkerOptions {
|
||||
module_loader: Rc::new(FsModuleLoader),
|
||||
extensions: vec![hello_runtime::init_ops_and_esm()],
|
||||
extensions: vec![hello_runtime::init_ext()],
|
||||
..Default::default()
|
||||
},
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue