maptool
maptool copied to clipboard
[Feature]: Add The ability for Add-On to specify what JavaScript it exports
Feature Request
Add the ability for an Add-On to specify what JavaScript it exports for other Add-Ons to import. This feature should allow the exporting of specific JavaScript files or whole directories.
The Solution you'd like
Add an exports
field to the libraries.json
metadata file for an Add-On. e.g.
{
"exports": [
"/somedir/",
"someotherdir/somefile.js"
]
}
Alternatives that you've considered.
No response
Additional Context
No response
Partial duplicate, at least functionally, of #3513. Although this explains it better, so close mine :)
Partial duplicate, at least functionally, of #3513. Although this explains it better, so close mine :)
This is not for webview, no real plans for webview at the moment as we don't have really any control over it. You can use esbuild, or webpack or something similar.