-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend Deno with plugins #28126
Comments
Since these proposals involve violations of the current ES spec (as I pointed out on Discord), I believe the correct route is to make a standardization request to TC39, not to Deno.
Related to Stage 1 Compartments proposal. It would be good to provide feedback there.
You know, currently it is not allowed to access the ESM cache on the hosts (browser runtimes, Node.js, Deno, Bun and so on). As far as I know, it is not even proposed in TC39, so it is better to offer it on TC39 Discourse or Matrix chat room. Please check the ECMA262 CONTRIBUTING.md for more information. |
related: #27820 |
Node provide internals which allow me to access the cache. It took months for a new proposal, and even more time for it to be implemented. Anyways, I will try propose on TC39. |
Also, you can handle module load in Node.js with |
A way to extend Deno with plugins.
Like Bun Plugins
Deno plugins is able to modify the
import
(require
) logic, like:/\.(yaml|yml)$/
to implement a custom yaml file loader)#db
and export database connection)deno plugins might be under a permission flag to prevent abuse.
Example Use cases
For example, implementing YAML loader:
And virtual module (override could existing module):
The text was updated successfully, but these errors were encountered: