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
{{ message }}
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
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 🤔 There are some npm packages for that and I'm also thinking about index map. I need to check which one will suit lib better.
Steps to reproduce the issue
Add
bannerNewLine: true
to your rollup-plugin-babel-minify config.Expected result
Newline should be added after banner, sourcemaps should not be cleared.
Actual result
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.
Other details
Looking at the code, the bug seems to be in this line:
https://github.com/Comandeer/rollup-plugin-babel-minify/blob/master/src/index.js#L50
When calling
addNewLine
, the source maps generated bytransform
are completely disregarded.Version of package: 6.0.0
Node.js & npm versions: 8.11.3 , 5.6.0
Operating system: Ubuntu 18.04.1 LTS
The text was updated successfully, but these errors were encountered: