mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
7a8bb3b611
Fixes #18979. This changes the predicate for allowing `ext:` specifier resolution from `snapshot_loaded_and_not_snapshotting` to `ext_resolution_allowed` which is only set to true during the extension module loading phase. Module loaders as used in core are now declared as `ExtModuleLoader` rather than `dyn ModuleLoader`.
5 lines
170 B
JavaScript
5 lines
170 B
JavaScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
function hello() {
|
|
console.log("Hello from extension!");
|
|
}
|
|
globalThis.Extension = { hello };
|