Closed miguelcobain closed 7 years ago
Could you add a test as well?
For future reference:
I opted to use \n
. Template strings preserve whitespace. This way we're more sure about what space gets added without making the source code weird.
Test added and previous test fixed.
a js file may end with a line comment. If it does, this transform places the
}
in the same line as the comment and then the closing bracket is ignored leading to syntax errors.