DenoDDeno
Powered by
webbowerW
Deno•3y ago•
2 replies
webbower

Globally import files for Deno subcommands

I’ve looked at Deno docs and searched online to no avail for this answer. Is there a capability in Deno similar to
node -r <packageOrFilepath>
node -r <packageOrFilepath>
or some other ability to globally import one or more files for the whole script lifetime? For a concrete example, how would I load a polyfill for a global method to be present in my application code and again for individual test files to ensure the polyfilled method is always available?
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

Deno import use for local files?
jradxlJjradxl / help
2y ago
Deno is not installed globally
ZAIDZZAID / help
2y ago
Deno Deploy JSON import
CovaCCova / help
3y ago