Use named export for ES module compatibility. #4

Closed
bradleyayers wants to merge 1 commit from master into master
bradleyayers commented 2017-05-30 05:13:53 +02:00 (Migrated from github.com)

I'd expect a major bump after this is released.

I'd expect a major bump after this is released.
stephankaag commented 2018-09-04 11:43:20 +02:00 (Migrated from github.com)

@marijnh What do you think? I need this as well.

@marijnh What do you think? I need this as well.
marijnh commented 2018-09-04 11:46:44 +02:00 (Migrated from github.com)

Argh, sorry about never responding here.

In which context can you treat a CommonJS module as an ES module, but you can't use module.exports as export default?

Argh, sorry about never responding here. In which context can you treat a CommonJS module as an ES module, but you can't use `module.exports` as `export default`?
stephankaag commented 2018-09-04 12:34:59 +02:00 (Migrated from github.com)

Now it's my turn to Argh ;-)

I had a wrong import statement somewhere else and i (incorrectly) blamed orderedmap. You can ignore my previous comment.

Now it's my turn to Argh ;-) I had a wrong import statement somewhere else and i (incorrectly) blamed orderedmap. You can ignore my previous comment.
marijnh commented 2018-09-04 12:36:28 +02:00 (Migrated from github.com)

Okay, thanks. @bradleyayers Is this still something that would help you? If not, I'll close it.

Okay, thanks. @bradleyayers Is this still something that would help you? If not, I'll close it.
bradleyayers commented 2018-09-04 12:58:01 +02:00 (Migrated from github.com)

I don't believe I need this since TypeScript added esModuleInterop.

I don't believe I need this since TypeScript added `esModuleInterop`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
marijn/orderedmap!4
No description provided.