https://repl.it/repls/AmpleDirtyContent (I like the name :smiley: )
Should include original typescript source code as sourcesContent in sourcemaps.
sourcesContent is null for typescript files.
A workaround is add "inlineSources": true, to your tsconfig.json.
This is because typescript compiler generated sourcemap uses path instead of content of your code. It seems rollup cannot process them. inlineSources will force compiler to emit the source contents alongside the sourcemaps within a single map file which rollup can work with it.
I think this can be closed, right?
I think it can be closed now.
Most helpful comment
A workaround is add
"inlineSources": true,to yourtsconfig.json.This is because typescript compiler generated sourcemap uses path instead of content of your code. It seems rollup cannot process them.
inlineSourceswill force compiler to emit the source contents alongside the sourcemaps within a single map file which rollup can work with it.