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

Update mod.ts #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Ding-Fan
Copy link

@Ding-Fan Ding-Fan commented Dec 9, 2020

maybe a fix for #1

https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export

Note: The following is syntactically invalid despite its import equivalent:

import DefaultExport from 'bar.js'; // Valid
export DefaultExport from 'bar.js'; // Invalid

The correct way of doing this is to rename the export:

export { default as DefaultExport } from 'bar.js';

https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export

> Note: The following is syntactically invalid despite its import equivalent:

```js
import DefaultExport from 'bar.js'; // Valid
export DefaultExport from 'bar.js'; // Invalid
```

The correct way of doing this is to rename the export:

```js
export { default as DefaultExport } from 'bar.js';
```
@reesericci
Copy link

Can you publish your fork to https://deno.land/x ?

@Ding-Fan
Copy link
Author

Can you publish your fork to https://deno.land/x ?

sorry, really busy these days 😪
maybe you can publish it 😃

@sant123
Copy link

sant123 commented Mar 1, 2023

Any advance on this? 🤔

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.

3 participants