AljoschaMeyer
AljoschaMeyer
DDeno
Created by AljoschaMeyer on 2/3/2024 in #help
Working around imports without a file extension
Found a similar question on here, unfortunately no answers: https://discord.com/channels/684898665143206084/1105151692766457907/1105151692766457907
4 replies
DDeno
Created by AljoschaMeyer on 2/3/2024 in #help
Working around imports without a file extension
Later, the deno jsx docs propose using import maps as a workaround:
In situations where the import source plus /jsx-runtime or /jsx-dev-runtime is not resolvable to the correct module, an import map can be used to instruct Deno where to find the module.
That sentence seems to imply that there also are situations where "import source plus /jsx-runtime or /jsx-dev-runtime" is resolvable. What would these situations look like? I'm hesitant about import maps as a workaround because the import map docs explicitly warn that they are only used for applications but not for libraries. There has to be a way to use custom jsx in libraries, though. Right?
4 replies