Skip to content

Cleanup import ember#2668

Merged
mansona merged 3 commits intoemberjs:mainfrom
mainmatter:cleanup-import-ember
Jul 11, 2025
Merged

Cleanup import ember#2668
mansona merged 3 commits intoemberjs:mainfrom
mainmatter:cleanup-import-ember

Conversation

@BlueCutOfficial
Copy link
Copy Markdown
Contributor

@BlueCutOfficial BlueCutOfficial commented Jul 8, 2025

Description

This PR is part of preparing the ground for Vite support. When running the Inspector against a Vite app, the Ember global from ember_debug/utils/ember is undefined. The problem is twofold: first, the utils file itself is not prepared for this case; second, Ember is exported as default from the utils to be used in different places of the code.

This PR:

  • Complete the "centralization" work by removing all the import Ember from 'ember_debug/utils/ember' in favor of the named exports.
  • Re-order things in the utils so we never try to access Ember properties if Ember is not defined.

@BlueCutOfficial BlueCutOfficial force-pushed the cleanup-import-ember branch 2 times, most recently from 3a7f7ba to 34cbf29 Compare July 8, 2025 17:11
@BlueCutOfficial BlueCutOfficial requested a review from mansona July 8, 2025 17:18
@BlueCutOfficial
Copy link
Copy Markdown
Contributor Author

I tried to remove the export default Ember; from the utils, but tests are timing out for 3.16, 3.20, and 3.24. I haven't figured out yet what part I am missing here.

@BlueCutOfficial BlueCutOfficial marked this pull request as ready for review July 8, 2025 17:50
Copy link
Copy Markdown
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

This is a good PR, I've added one comment/question but I don't consider it a blocker

Copy link
Copy Markdown
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

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

Perfect 👨‍🍳 👌

@mansona mansona merged commit a04594b into emberjs:main Jul 11, 2025
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants