ts-browser icon indicating copy to clipboard operation
ts-browser copied to clipboard

Run typescript files with imports on the fly. Like ts-node, but for browser

Results 10 ts-browser issues
Sort by recently updated
recently updated
newest added

As I found out today, the caching does not work on non-https pages because `crypto.subtle` is only available in secure contexts, and I use it for sha256 hash of compiled...

bar.ts: function bar() { console.log("bar() is called"); } foo.ts: export {bar} from "./bar" Result: export { bar } from "./bar"; //# sourceURL=./foo.ts Uncaught (in promise) TypeError: Error resolving module specifier...

https://github.com/swc-project/swc ![image](https://user-images.githubusercontent.com/5202330/111473543-d31e6b00-8733-11eb-8ddd-6bcf2d23575d.png)

SUPER-HIGHEST PRIORITY!

Some [articles claim](https://visualstudiomagazine.com/articles/2020/05/14/typescript-3-9.aspx) that typescript got a compile speed boost in 3.9, should try it out. Though the boost could be only related to type check, not the bare transpilation...

https://github.com/klesun/ts-browser/blob/aaaf6a0bf88b744988c8c61386820d72312d23e3/src/ts-browser.js#L77

If I copy ts-browser down to my project locally, and load the module as so: ``` import {loadModule} from './ts-browser/src/ts-browser.js'; loadModule('./index.ts'); ``` It still calls out to various klesun urls...

@klesun I tried doing: I have local files `render/test.ts`: ```ts import "some/file"; // I want to import root/some/file doStuff(); ``` I do: ```html import {loadModule} from 'https://klesun.github.io/ts-browser/src/ts-browser.js'; loadModule('../render/test.ts', { baseUrl:...

https://github.com/microsoft/TypeScript/commit/6dfa4299d7a6d0eeb67011ae1dcfb668f3c42443 Apparently `typescriptServices.js` was removed from the repo in typescript v5. Possibly there are some new analogs, or it is just supposed to be compiled manually now. Need research.

Hi First, thanks for making this cool script to have typescript in the browser! Without Typescript, the browsers support "importmap"s to easily load external resources: ```html { "imports": { "random":...

I just noticed that workers keep hanging in the background even after all typescript files were loaded. I believe that wastes away a lot of RAM, as each worker initializes...