Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for named exports when importing #62

Merged
merged 1 commit into from
Nov 8, 2021
Merged

Conversation

perrin4869
Copy link
Contributor

Adds support for importing as named exports from mjs modules:

import { po, mo } from 'gettext-parser';

Recent node does some parsing using cjs-module-lexer, and it can understand lines like module.exports.po, but it can't understand module.exports = { po: ... }.

@smhg smhg merged commit c4ec0b2 into smhg:master Nov 8, 2021
@smhg
Copy link
Owner

smhg commented Nov 8, 2021

That's great! Thank you!

@smhg
Copy link
Owner

smhg commented Nov 8, 2021

Published as 4.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants