Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Empty sourcemaps when using bannerNewLine = true. #133
Steps to reproduce the issue
Newline should be added after banner, sourcemaps should not be cleared.
Newline is added after banner, but sourcemaps also get cleared. By cleared, I mean that I get the following:
Disabling this option yields the complete sourcemaps.
Looking at the code, the bug seems to be in this line:
Version of package: 6.0.0
Node.js & npm versions: 8.11.3 , 5.6.0
Operating system: Ubuntu 18.04.1 LTS
It will be a little tricky one… First I thought about simply using map generated before adding the new line, but obviously it won't work (or – at best – the whole sourcemap will be shifted by one line). Seems like I need to somehow combined two generated sourcemaps