Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Remove all default exports (major)#185

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
marvinhagemeister wants to merge2 commits intomain
base:main
Choose a base branch
Loading
fromremove-default-export

Conversation

@marvinhagemeister
Copy link
Member

@marvinhagemeistermarvinhagemeister commentedMar 10, 2021
edited
Loading

Mixing both default and named exports has no clearly defined behaviour and can easily lead to unexpected results. Some tools use a combination ofdefault +__esModule property and others ignore named exports completely if both are found. Those issues are difficult to debug when multiple tools are used together.

This change makes some code redundant by not having to patch a hand crafted exports object for commonjs environments.

Mixing both default and named exports has no clearly defined behaviourand can easily lead to unexpected results. Some tools use a combination of"default" + "__esModule" property and others ignore named exportscompletely if both are found. Those issues are difficult to debug when multiple tools areused together.This change makes some code redundant by not having to patch a hand crafted exportsobject for commonjs environments.
@developit
Copy link
Member

Couldn't we provide only a default export? None of the other exported methods were widely used.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JoviDeCroockJoviDeCroockJoviDeCroock approved these changes

@developitdevelopitAwaiting requested review from developit

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@marvinhagemeister@developit@JoviDeCroock

[8]ページ先頭

©2009-2025 Movatter.jp