D
Deno

help

Smoother DX using 3rd party modules written in TypeScript in the Browser

PHPatrick (he/him)4/11/2023
Say, for instance, I want to use the "async" standard library's Deferred implementation in some code that runs in the Browser. Currently I manually copy the TypeScript source to a vendor folder and have my build step do the transpilation, then have my import map point to the transpiled code. Is there a way to have Deno or a complimentary tool do the transpiling with less manual intervention and allow a developer to use the original URL for the TypeScript module in their import map? [Aside: wasn't quite sure whether to post this in #help or #ideas . Kinda straddles the line to me ๐Ÿคท๐Ÿปโ€โ™‚๏ธ ] also, if it doesn't exist already, I might throw together a prototype
๐•’๐•ฃ๐•ค๐•™4/11/2023
ry expressed interest in deno.land automatically compiling to js for the browser years ago nothing came of it but it's something they were interested in
PHPatrick (he/him)4/11/2023
that would be cool!
๐•’๐•ฃ๐•ค๐•™4/11/2023
GitHub
Redirect module path to exact mod.ts/js index.ts/js file ยท Issue #2...
Extracted from denoland/deno#17475 Take notice that this is in the dotland repo and is not a change to Deno's module resolution. This is a proposal to create a new endpoint on the registry that...
๐•’๐•ฃ๐•ค๐•™4/11/2023
GitHub
Serve precompiled JavaScript to the browser ยท Issue #1728 ยท denolan...
Reason It would be nice to be able to directly import TypeScript modules from the browser without having to use deno bundle. Suggestions Every TypeScript should be compiled once to JavaScript. If U...

Looking for more? Join the community!

Recommended Posts
grpc / http2 / https in fresh.please a correct way to use grpc / http2 / https in fresh.Importing local Node.js modulesI have a local Node.js/TS package in local directory `/foo/bar/leet/package.json` โ€“ Is there any wayServer Sent Events with FreshHi! I am trying to use Server Sent Events (SSE) with fresh. I understand I should have an island thaTwind intellisense stop workingOut of the blue, intellisense stopped working even though I installed the twind and deno extensions How use namespace on Denoi am trying to use the same namespace in multiple modules but what used to work in node, doesn't worRestart Deno process on crashHello, The following Node snippet allows a script to restart on crash : ```js import { spawn } fbest practice when spawning commands that require sudo?I am building a command line utility in deno that leverages data coming from `tcpdump`. To get any mChaining Tasks and using --watchIs there a way to chain Deno tasks or something to that accord? I'd like to run esbuild from the comHow to setup deno for Lunarvim?I've followed the steps to install the LSP for deno, but the completion and formatter doesn't work Unexpected token 'export' (deno_core)Playing around with ModuleLoaders, but doesn't seem to make a difference Scripts containing the expglobal is not definedWhy Deno doesn't have global like node.js? There is globalThis, but some things from npm packages arUsing querySelector on NodeI am doing something like: ```ts const nodeList: NodeList = document.querySelectorAll(".foo"); constSimpler way to read a file relative to current module?So I wrote a little helper function for reading the text content of a file relative to the current merror: BadResource: Bad resource IDI'm writing tests for https://github.com/deno-libs/tinyhttp/pull/9. ```js import { describe, expect