-
Notifications
You must be signed in to change notification settings - Fork 51
Add default exports to avoid build warnings #2944
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
Conversation
To prevent/resolve warnings
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
not sure I follow @aklkv. could you please expand on your feedback here? |
I'm curious what the underlying problem was here? To my knowledge, you are not required to have a default export in every file. |
The build process is looking for default exports from several modules, and those modules were exporting named constants and functions instead. HCP raised a few times now that this adds unnecessary noise to their build logs so we're trying to act on feedback. |
@alex-ju totally correct, all ember specific folders like: /components only one real (meaning non type) default export, otherwise emberoider/webpack (this "issue" more like noise is only specific to webpack variant of embroider because how it build export map). my feedback here we should fix it it's easy, otherwise I would prefere to direct our attention to single file components migration as it's much more important and becoming blocking addictianally it would not be even a problem with vit which is going to be predominant favour of build tooling for all projects that are going to migrate. |
I finally got time to look into this:
this would slim down your PR substantially, to see the result what we see when using hds in embroider context check our Run Tests for |
I don't mind adding this exception, but there is only one
the above modifiers are already covered in this PR with default exports
I'm not sure I follow, what would slim down the PR substantially? as I mentioned above, the suggested change in rollup config only clears one warning. And yes, as mentioned in the tickets, I'm testing with |
Closing this PR as we've been unable to align on a solution and it's been stalled in review for over a month. Since the changes were only intended to address non-functional build warnings, it's probably not worth pursuing further at this time. |
📌 Summary
Add
export default
to avoid build warnings and allow tidy imports.🔗 External links
Jira ticket: HDS-4637 and HDS-3342
💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.