Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Doc] DeepkitLoader setup guide and examples? #593

Open
kkimdev opened this issue Jul 8, 2024 · 3 comments
Open

[Doc] DeepkitLoader setup guide and examples? #593

kkimdev opened this issue Jul 8, 2024 · 3 comments

Comments

@kkimdev
Copy link

kkimdev commented Jul 8, 2024

(Please correct me if I'm wrong)

swc and esbundle are getting popular, it would be great to have a documentation on how to use DeepkitLoader with them in common environments.

We recently tried Deepkit RPC in our project. So far so good except our server restart became 2x slower, from switching swc to tsc. We're trying to figure out if we can use DeepkitLoader and keep swc.

This is how we run our server

node --enable-source-maps --loader ts-node/esm/transpile-only --inspect main.ts

and our tsconfig.json had

{
  ...
  "ts-node": {
    "swc": true
  }
}
@marcj
Copy link
Member

marcj commented Jul 8, 2024

I don't think SWC supports javascript plugins, so it's impossible to load any javascript loader with SWC

@kkimdev
Copy link
Author

kkimdev commented Jul 8, 2024

fwiw, if it works, we would also consider node+esbuild, since the speed is pretty similar on benchmarks.

@marcj
Copy link
Member

marcj commented Jul 8, 2024

with esbuild it works fine. maybe this helps https://github.com/gjsify/gjsify/tree/main/packages/infra/esbuild-plugin-deepkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants