swc-project / swc-node

Faster ts-node without typecheck
MIT License
1.72k stars 71 forks source link

fix(sourcemap-support): add "tslib" as a dependnecy for "sourcemap-suport" #670

Closed maxkomarychev closed 1 year ago

maxkomarychev commented 1 year ago

Compiled code of this package requires "tslib" to be installed which is not the case if the porject has "@swc-node/register" as a single dependency.

In that case npm will generate the following tree:

- node_modules
  - @swc-node
    - sourcemap-support
    - register
      - node_modules
        - tslib

and tslib will be insaccessible for "@swc-node/sourcemap-support"

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

maxkomarychev commented 1 year ago

thanks :)