Skip to content

Disable the polyfill when the method is available in ember-source #10

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

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

Windvis
Copy link
Collaborator

@Windvis Windvis commented Mar 29, 2021

This uses @embroider/macros to disable the polyfill when the addon runs in an Ember version that includes the refresh method already.

Draft status since the exact version isn't known yet, and it might be "better" to use the treeFor hooks and not return the initializer files at all. That's how other ember polyfills seem to do it. It's released in Ember 4.1.0-beta.1 🎉.

Closes #1

@Windvis
Copy link
Collaborator Author

Windvis commented Sep 12, 2021

Since it wasn't part of 3.28 the earliest this can be included is in the 4.1 release.

Ember 4.1 includes the refresh method so the polyfill can be safely disabled.
@Windvis Windvis force-pushed the disable-polyfill-with-embroider-macros branch from e65e1d0 to df796af Compare November 24, 2021 20:31
@Windvis Windvis marked this pull request as ready for review November 24, 2021 20:31
@Windvis Windvis added the enhancement New feature or request label Nov 24, 2021
@Windvis Windvis changed the title Disable the polyfill when the app has a certain Ember version Disable the polyfill when the feature is available in ember-source Nov 24, 2021
@Windvis Windvis changed the title Disable the polyfill when the feature is available in ember-source Disable the polyfill when the method is available in ember-source Nov 24, 2021
@Windvis Windvis merged commit db02bfb into main Nov 24, 2021
@Windvis Windvis deleted the disable-polyfill-with-embroider-macros branch November 24, 2021 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable the polyfill when the feature is available in ember-source
1 participant