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 /tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js | |
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 'tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js')
-rw-r--r-- | tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js b/tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js new file mode 100644 index 000000000..ba630f93b --- /dev/null +++ b/tests/registry/npm/@denotest/cjs-require-esm/1.0.0/index.js @@ -0,0 +1 @@ +module.exports.Test = require("./esm/my_es_module.js"); |