https://github.com/alcalzone/yarn-monorepo-sourcemap-repro
https://github.com/alcalzone/yarn-monorepo-sourcemap-repro
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/alcalzone/yarn-monorepo-sourcemap-repro
- Owner: AlCalzone
- Created: 2021-07-22T07:38:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-22T08:33:43.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T20:51:31.918Z (over 1 year ago)
- Language: TypeScript
- Size: 784 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yarn-monorepo-sourcemap-repro
Repro for a debugging problem with yarn PnP in a TypeScript monorepo.
We have two packages `a` and `b`. Both should have a breakpoint in their `index.ts` file.
`test.ts` imports both, package `a` via its package name, package `b` via its relative path.
If you the repo in VSCode and execute `yarn debug` in a debug terminal, you'll see that the breakpoint in `b/src/index.ts` is resolved and debugging steps into there,
but in `a`, the breakpoint is not resolved and debugging uses the compiled `index.js` file.