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

multiple aliased imports aren't support #10

Open
Mearman opened this issue Dec 7, 2020 · 1 comment
Open

multiple aliased imports aren't support #10

Mearman opened this issue Dec 7, 2020 · 1 comment

Comments

@Mearman
Copy link

Mearman commented Dec 7, 2020

The following does not parse correctly

import { version as uuidVersion, validate as uuidValidate } from 'uuid';

The following has to be used instead

import { version as uuidVersion } from 'uuid';
import { validate as uuidValidate } from 'uuid';

The problem is here according to @ctavan
cdeb284#diff-180b3d2af89416b99563fff8c37eb8ca1ef7591fc1ddd736b5dacf740ccd3760

@ctavan
Copy link
Contributor

ctavan commented Dec 7, 2020

The problem back when I tried porting runmd to supporting ESM was that I wasn't sure how to implement the onRequire hack used in https://github.com/uuidjs/uuid/blame/master/README_js.md#L1

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

No branches or pull requests

2 participants