Skip to content

Convert ember-debug to ESM and simplify wrapper#2672

Merged
ef4 merged 8 commits intoemberjs:mainfrom
mainmatter:wrapper
Jul 29, 2025
Merged

Convert ember-debug to ESM and simplify wrapper#2672
ef4 merged 8 commits intoemberjs:mainfrom
mainmatter:wrapper

Conversation

@mansona
Copy link
Member

@mansona mansona commented Jul 24, 2025

Description

This PR is the last of the refactors necessary before we can simply add Vite support. The two main changes in this PR:

  • removing responsibility of building the ember-debug script from ember-cli and making it 100% the job of Rollup
  • injecting that ember-debug script using type=module now that it is ESM

I have tested this locally and it works 🎉 I have also been very carful not to refactor the startup-wrapper code, instead I've just split it out and moved the exact code around. This will give us the best chance that the code will work the same and any further improvements to the code can be made in separate PRs 👍

Copy link
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

Seems fine to me! I assume this is still compatible with our setup to check if you are on older Ember versions and load a totally different inspector?

@ef4 ef4 merged commit 5bc63e2 into emberjs:main Jul 29, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants