Closed malthejorgensen closed 5 years ago
how about this one:
({ pathname } = parsedUrl)
v 1.1.0 fails.
Merge this, please.
@malthejorgensen Thank your for your PR and sorry for my very late reply. I finally managed to tmerged it into the 1.2.0 branch and puglished 1.2.0-rc.1 on npm as a prerelease. I also added you as a contributor to the README. I hope this is okay with you? Could you please test this release in your code bases. If I won't get any negativ feedback till next monday I will convert it to the final 1.2.0 and will then merge it onto master.
All good with me!
Currently invalid syntax is output when transforming object rest properties (TC39 proposal). The rewiring seems to work as expected if we simply skip rewiring rest properties.
A small example triggering the error would be a module like this:
The code above is also provided in a test in the first of the two commits.