getsentry / babel-gettext-extractor

A fork of babel-gettext-plugin that works with older versions of node and supports comment and location extraction
MIT License
43 stars 22 forks source link

Add an option to strip the working directory #9

Closed dantman closed 5 years ago

dantman commented 6 years ago

Useful for compatibility with some environments like React Native that use absolute paths.

iongion commented 6 years ago

Can this be merged ?

woutervanvliet commented 6 years ago

imho, you can come to the same result with the baseDirectory option. This used to be difficult, when babel could only read a static JSON file - but with babel now reading JavaScript configuration it's rather trivial.

billyvg commented 5 years ago

Closing, please follow @woutervanvliet 's suggestion