rtritto

Results 310 comments of rtritto

@jpmckown do you use `ts-node` in the _start script_, in _vite config_ or somewhere?

Thanks, I added `ts-node` as dev dependency and it worked. Edit: ts-node should be added as an optional peer dependency.

FYI @brillout @magne4000

> Why not typeof bun === "undefined" Done, thanks!

> Also we should check that esbuild plugin not broken with it I tested on Windows side: - with Vite/Vike (`esbuild` in the hood): - with Node, using `@elysia/node`, I...

I added `@types/node` dev dependency because `globSync` (Node v22) isn't recognized. `@types/bun` also include `@types/node` but is v20 (Node v20). After https://github.com/oven-sh/bun/pull/13987 is merged, `@types/node` dev dependency can be removed.

> based i see this issue in my https://github.com/gramiojs/autoload too > > Bun just works fine I know. Bun maybe wraps always (Windows or not) the parameter of `import` with...

> > Also we should check that esbuild plugin not broken with it > > did u try it? https://github.com/kravetsone/esbuild-plugin-autoload > > But for now it uses `Bun.Glob` api (only...

How can we test with `esbuild`? It that https://github.com/kravetsone/esbuild-plugin-autoload?tab=readme-ov-file#esbuild-usage the correct reference? Draft: ```ts await esbuild .build({ target: "bun", outdir: "out", plugins: [{ name: 'elysia-autoload', setup: autoload }] }) .then(console.log)...

Changed to use glob with async iteration with streams. If needed, `sortByNestedParams` function can be restored and used to `paths` array (after `for async`). https://github.com/kravetsone/elysia-autoload/blob/a059f511e4f7e69e1c21ca075c08372bbede3a28/src/index.ts#L132