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

Stop using default export #2471

Merged
merged 4 commits into from
Mar 5, 2024
Merged

Stop using default export #2471

merged 4 commits into from
Mar 5, 2024

Conversation

JiuqingSong
Copy link
Contributor

The problem of export default is, when import, if the imported name is not the same with export name, it is valid, so when we want to do full text search, we may not be able to find those imports with different names. So let's stop using export default in Content Model code.

Copy link
Contributor

@juliaroldi juliaroldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we doing this changes for internal functions too?

@JiuqingSong JiuqingSong merged commit 2420491 into master Mar 5, 2024
7 checks passed
@JiuqingSong JiuqingSong deleted the u/jisong/nodefaultexport branch March 5, 2024 17:40
@JiuqingSong
Copy link
Contributor Author

Are we doing this changes for internal functions too?

For all exported functions, internal and external

florian-msft pushed a commit to florian-msft/roosterjs that referenced this pull request Mar 6, 2024
* Stop using default export

* fix test

* fix build
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.

2 participants