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

Allow opt-out of fetch polyfill #67

Merged
merged 1 commit into from
Jan 18, 2019

Conversation

mydea
Copy link
Contributor

@mydea mydea commented Nov 27, 2018

This PR adds a includeFetchPolyfill configuration option, which defaults to true, but can be disabled to not include the fetch polyfill.

IMHO, it would make sense to default this to false, and make this opt-in instead - but that would be a breaking change for a major release.

Fixes #66

@rwjblue
Copy link
Owner

rwjblue commented Nov 27, 2018

IMHO, it would make sense to default this to false, and make this opt-in instead - but that would be a breaking change for a major release.

We could also use the browser targets to decide if it is needed...

@mydea
Copy link
Contributor Author

mydea commented Nov 28, 2018

I can implement the same changes as here: ember-cli/ember-fetch#173 ?

@rwjblue rwjblue merged commit c4f09fe into rwjblue:master Jan 18, 2019
@rwjblue
Copy link
Owner

rwjblue commented Jan 18, 2019

ember-cli-pretender 3.1.0 published 🎉

@@ -35,6 +35,16 @@ var app = new EmberApp({
});
```

You can also opt out of including the fetch polyfill, if you do not need to run your tests in older browsers:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be "if you do not need to test fetch with pretender"? Since the polyfill is not for older browsers but to make fetch interceptable by pretender.

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.

3 participants