Skip to content

Conversation

mansona
Copy link
Member

@mansona mansona commented Apr 10, 2025

This PR finalises a lot of work done to get the Ember Inspector to support Vite 🎉 This will require a global API that Embroider can polyfill after this PR is merged: embroider-build/embroider#2522

There will be a follow up RFC that will move this polyfill implementation into ember-source 👍

@BlueCutOfficial
Copy link
Contributor

Rebased on #2668: since Ember is not defined in Vite world, we get a lot of side effects as long as the centralization part is incomplete.

@BlueCutOfficial BlueCutOfficial force-pushed the vite-support branch 2 times, most recently from c82e465 to c757db7 Compare July 15, 2025 08:04
@mansona mansona changed the title basic implementation of vite support Add support for Vite Aug 25, 2025
@mansona mansona marked this pull request as ready for review October 1, 2025 16:33

let self = this;
// maintaining `baseURL` for backwards compatibility. See: http://emberjs.com/blog/2016/04/28/baseURL.html
- let baseURL = options.liveReloadBaseUrl || options.rootURL || options.baseURL;
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to ship this change in this package?

Copy link
Member Author

Choose a reason for hiding this comment

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

so this is something that we should ship upstream but for now this just unblocks local development

import Port from 'ember-debug/port';
import setupEmberDebugTest from '../helpers/setup-ember-debug-test';

// import PortImport from 'ember-debug/port';
Copy link
Contributor

Choose a reason for hiding this comment

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

left over comment?

Copy link
Contributor

@NullVoxPopuli NullVoxPopuli left a comment

Choose a reason for hiding this comment

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

I'm happy with signing off on this. If anything comes up (if I need to), I'm happy to fix things

@mansona mansona merged commit 3cf4eaf into emberjs:main Oct 2, 2025
19 checks passed
@mansona mansona deleted the vite-support branch October 2, 2025 10:27
@github-actions github-actions bot mentioned this pull request Oct 2, 2025
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