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

Remove 2 requires #1383

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

NullVoxPopuli
Copy link
Sponsor Collaborator

require is private API to this package, and we have build-time tools via @embroider/macros

@acorncom
Copy link
Contributor

acorncom commented May 3, 2023

@NullVoxPopuli looks like this is still in draft mode or do you intend for it to be merged?

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review May 3, 2023 22:25
@NullVoxPopuli
Copy link
Sponsor Collaborator Author

It is intended to be merged, apologies

@@ -16,7 +16,6 @@ export default function ajax(url) {
});
});
} else {
let fetch = require('fetch').default;
return fetch(url).then((response) => response.text());
return waitForPromise(fetch(url).then((response) => response.text()));
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure this doesn't break fastboot?

I'm all in favor of switching to global fetch everywhere, but doing that correctly requires some work to make sure the global fetch does all the things that require('fetch') has been doing.

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

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

We can do the monorepo conversion first, and add a fastboot-using test app to be sure.

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.

None yet

3 participants