-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
base: master
Are you sure you want to change the base?
Remove 2 requires #1383
Conversation
@NullVoxPopuli looks like this is still in draft mode or do you intend for it to be merged? |
It is intended to be merged, apologies |
addon/addon-test-support/@ember/test-helpers/-internal/build-registry.ts
Show resolved
Hide resolved
@@ -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())); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…V2 conversion branch
require is private API to this package, and we have build-time tools via
@embroider/macros