Skip to content

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.

2 participants