You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a standard way to read what the import map is for the current environment at runtime? If not, it would be useful to specify one; perhaps via a new standard global or import.meta property.
Use case: An import map can be specified via a Deno CLI arg (e.g. --import-map=importMapProd.json) when starting an application server. When the Deno application serves SSR HTML for a route, it would be good to be able to extract the import map from the current JS environment and JSON.stringify it to establish the type="importmap" script in the HTML for the browser to use. This way the server and client can easily use exactly the same import map, without having to come up with configuration or environment variables that would complicate the simplicity of specifying the import map as a Deno CLI arg.
The text was updated successfully, but these errors were encountered:
Is there a standard way to read what the import map is for the current environment at runtime? If not, it would be useful to specify one; perhaps via a new standard global or
import.meta
property.Use case: An import map can be specified via a Deno CLI arg (e.g.
--import-map=importMapProd.json
) when starting an application server. When the Deno application serves SSR HTML for a route, it would be good to be able to extract the import map from the current JS environment andJSON.stringify
it to establish thetype="importmap"
script in the HTML for the browser to use. This way the server and client can easily use exactly the same import map, without having to come up with configuration or environment variables that would complicate the simplicity of specifying the import map as a Deno CLI arg.The text was updated successfully, but these errors were encountered: