[bug] when compiling with @swc/core
(emitDecoratorMetadata
enabled) VSCode debug breakpoints set in TS code are not picked up by the debugger
#603
Labels
When having
emitDecoratorMetadata
enabled and@swc/core
installed the resulting bundle that gets produced by tsup will for unknown reason not work properly when debugging in VSCodeI have made a simple reproduction repo: https://github.com/favna/improved-palm-tree
Steps to reproduce:
with-swc
andwithout-swc
folders either sequentially or in different terminal tabsyarn
to install modulesyarn build
to compile TS codesrc/index.ts
and set a VSCode breakpoint on line 2.vscode/launch.json
):This is really quite annoying because being able to just set breakpoints in TS code is super super useful, while on the flip side using @swc/core is AFAIK a must-have when
emitDecoratorMetadata
is also required for the project.The text was updated successfully, but these errors were encountered: