diff options
author | snek <snek@deno.com> | 2024-09-10 13:12:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 20:12:36 +0000 |
commit | f9007d3386bbe9f709ce413ac0cf099b86d4c4bf (patch) | |
tree | 3254119b37ef434062c431b2b4964d9317fb5f1a /ext/node/lib.rs | |
parent | ee3829a7787b337b2a7e98251b40d5937b2c255b (diff) |
feat: require(esm) (#25501)
implement require(esm) using `op_import_sync` from deno_core.
possible future changes:
- cts and mts
- replace Deno.core.evalContext to optimize esm syntax detection
Fixes: https://github.com/denoland/deno/issues/25487
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index 39b06e9fd..f569f5b2a 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -339,6 +339,7 @@ deno_core::extension!(deno_node, ops::os::op_homedir<P>, op_node_build_os, op_npm_process_state, + ops::require::op_require_can_parse_as_esm, ops::require::op_require_init_paths, ops::require::op_require_node_module_paths<P>, ops::require::op_require_proxy_path, |