DenoDDeno
Powered by
ExidexE
Denoβ€’3y agoβ€’
2 replies
Exidex

Is it possible to import cjs module from es module, both in extension?

cjs is added using
deno_core::extension
deno_core::extension
's
js
js
. esm added using
deno_core::extension
deno_core::extension
's
esm
esm

I can import esm from other esm using
ext
ext
but it seems that
ext
ext
protocol only works for esm and not cjs.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to import relative JSR module from import map
cdaringeCcdaringe / help
16mo ago
Import module from gitlab server
ZweiEuroZZweiEuro / help
13mo ago
ES Module mocking workaround
SMellSSMell / help
3y ago
Is it possible to rename a module in third party modules?
elekramEelekram / help
4y ago