You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to setup a gazillion times sourcemapping with rollup + ts but never had luck. There's always a bug somewhere. It would help a lot if the author provided a full working example that is maintained which is a realistic use case with tree shaking working. terser, commonjs and preserveModules: true, and paths in tsconfig defined.
Our team can't debug code efficiently, I've reached a point where I feel like searching for an alternative due to lack of simple working demo. Lots of repeated github issues on this, SO questions from 2020 yet no solution or help.
@rollup/plugin-typescript
12.1.2
4.30.0
v22.5.1
Expected Behavior
The content of
build/index.cjs.map
should reference the original .ts files that rollup has builtbuild/index.cjs
from, i.e.,sourcesContent
contains the original.ts
source files.mappings
reference character positions in the original.ts
files.Actual Behavior
sourcesContent
contains the transpiled JavaScript code, with TypeScript annotations removed.mappings
appears to also reference the transpiled positions in code, rather than the original positions.Additional Information
The text was updated successfully, but these errors were encountered: