Skip to content

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