DenoDDeno
Powered by
tmcwT
Denoβ€’3y agoβ€’
2 replies
tmcw

Is it possible to know what version of a dynamically-imported module was just imported?

Right now, you can run code like
import('npm:lodash')
import('npm:lodash')
, which will get the latest version of lodash. Is it possible to know what version of lodash that resolved to, in the runtime or elsewhere? I suspect that it writes to an import map if there is one?
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

Dynamically imported module evaluation is still pending
moubliniMmoublini / help
4y ago
Is it possible to override `process.version`?
vicaryVvicary / help
3mo ago
Is there a way to determine what modules have been dynamically imported at runtime?
Mark GMMark G / help
4y ago