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

fix(ui5-tooling-modules): support 'as default' exports in modules #1092

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

petermuessig
Copy link
Member

This is e.g. the case in the fetch-mock module:

[...]

var index = FetchMock.createInstance();

export { index as default };

This then returns an object having a default property but it isn't detected properly by rollup. The __esModule support ensures to also get access to the default property at the import.

@petermuessig petermuessig merged commit db647f4 into main Oct 12, 2024
5 checks passed
@petermuessig petermuessig deleted the fix/ModulesAsDefault branch October 12, 2024 06:13
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.

1 participant