Open swansontec opened 7 years ago
I have the same problem when add the rollup-plugin-flow
;
@Luobata & @swansontec have you guys found a solution for this ? thanks
The Rollup plugin docs here suggest that the sourcemap should be null
if the transform doesn't change the source, versus {mappings: ''}
if "it doesn't make sense to generate a sourcemap". So unless {pretty: true}
, I think the former is the case, but it looks like flow-remove-types returns a sourcemap with mappings: ''
Thanks to @kepta for showing how to fix this!
I recently added
rollup-plugin-flow
to my build flow. Unfortunately, my source maps come out with useless content now:I've trimmed a few thousand semicolons for brevity, but you get the idea. When I remove
rollup-plugin-flow
, the source maps come out correctly again. Here is myrollup.config.js
:Versions are: