Skip to content

Commit

Permalink
fix(sourcemap-support): add "tslib" as a dependnecy for "sourcemap-su…
Browse files Browse the repository at this point in the history
…port" (#670)

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"
  • Loading branch information
maxkomarychev authored Oct 4, 2022
1 parent ad0d23b commit ec9ffeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sourcemap-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"url": "git+https://github.com/swc-project/swc-node.git"
},
"dependencies": {
"source-map-support": "^0.5.21"
"source-map-support": "^0.5.21",
"tslib": "^2.4.0"
},
"bugs": {
"url": "https://github.com/swc-project/swc-node/issues"
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec9ffeb

Please sign in to comment.