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

Assign default exports on exports directly #6

Closed aduth closed 5 years ago

aduth commented 7 years ago

Fixes #4

This pull request seeks to export module via module.exports instead of exports.default. In the former case this relies on the assignment of exports.__esModule to be inferred as a ES2015 import. This exists in the source repository but not in this fork:

https://github.com/jruchaud/babel-gettext-plugin/blob/e202dab9fc116c49beaccff8c5c89a1be88aac5f/index.js#L24

billyvg commented 5 years ago

Fixed here https://github.com/getsentry/babel-gettext-extractor/commit/d3f882f6b47f1d391c43b227b731dd22c62f23b2#diff-168726dbe96b3ce427e7fedce31bb0bc