Deduplicate dependencies like Vite #1990
Unanswered
bestickley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, is it possible to deduplicate dependencies like Vite does with ts-node and swc? My use case is I'm using ts-node to run an app in a PNPM workspace and I'm locally linking a package (
pnpm add ../../../some-package
). Both the app and some-package use a node_module that needs to have it's reference identical (instanceof
checks) so having th package installed within app's node_modules and some-package's node_modules is a problem. With Vite, I can useresolve.dedupe
to deduplicate these, but I cannot with ts-node. Does anyone know a solution with ts-node? Thanks!Beta Was this translation helpful? Give feedback.
All reactions