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

feat: patch ember-cli-babel #12

Merged
merged 2 commits into from
Aug 17, 2020
Merged

feat: patch ember-cli-babel #12

merged 2 commits into from
Aug 17, 2020

Conversation

buschtoens
Copy link
Contributor

@buschtoens buschtoens commented Aug 17, 2020

Closes #1. Closes #2.

This removes the not reliably working patch-package hackery and replaces it with different h4xx.

We now patch the consuming parent's instance of ember-cli-babel to rewrite the { cached } from '@glimmer/tracking' import to Ember._cached, just before applying the other rewrites from babel-plugin-ember-modules-api-polyfill.

I think this is a quite mean hack, but given that we can remove it, as soon as the RFC gets accepted & ember-cli/ember-rfc176-data#322 gets merged, I think it's acceptable as an intermittent solution.

I'd still like add a more sophisticated test harness with a monorepo setup, so test that this works reliably in apps, addons, engines and Embroider.

@buschtoens buschtoens added the enhancement New feature or request label Aug 17, 2020
@buschtoens buschtoens changed the title feat: patch `ember-cli-babel feat: patch ember-cli-babel Aug 17, 2020
@buschtoens buschtoens merged commit fb057e0 into main Aug 17, 2020
@buschtoens buschtoens deleted the better-h4xx branch August 17, 2020 13:46
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.

Rename to @cached Remove ember-rfc176-data patch
1 participant