Closed silverwind closed 5 months ago
@swc/core
in peerDependencies works as expected
I guess my npm is not set up to automatically install peer dependencies.
Found the reason why npm did not install @swc/core
: I had legacy-peer-deps=true
in my .npmrc
. Removing it made it install the peer dep.
On a fresh repo, running the previous example would result in a
Error: Cannot find module '@swc/core'
otherwise.I think it'd also be good to add
@swc/core
as a peer dependency to@swc-node/register
, so that@swc/core
will be installed automatically when missing.