Closed trafnar closed 2 years ago
hah! what a strange issue. I'm guessing this is a Terser bug.
Shouldn't be Terser, it isn't used with compression disabled.
This might've been an upstream bug, as I cannot reproduce on latest version (0.14.2
). Therefore going to close this out.
I set up a simple project and needed to maintain comments, so I used the
--no-compress
flag, which worked, except it seems to remove the first line if it is a comment.becomes this in
dist/index.js
I'm using typescript with this configuration in package.json: