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

Revert "Use setupPreprocessorRegistry() hook to register HTMLBars AST plugin" #359

Merged
merged 2 commits into from
Apr 18, 2019

Conversation

Turbo87
Copy link
Collaborator

@Turbo87 Turbo87 commented Apr 18, 2019

This reverts PR #338 to fix #345

It turns out that ember-cli/ember-cli#7059 does not quite work for us in addon builds as we still don't have access to the EmberApp instance in that case. We will look into fixing this in CLI itself, but in the meantime, reverting this should fix the immediate issue and enable us to take advantage of the Babel/HBS parallelization.

I've tested this variant in a production app and a fresh ember addon and it seems to do the right thing in both cases, for both dev and prod builds.

/cc @rwjblue

@Turbo87 Turbo87 added the bug label Apr 18, 2019
index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

LGTM, I left one somewhat pedantic (but IMHO important) comment but its just a minor naming thing.

index.js Outdated Show resolved Hide resolved
@Turbo87 Turbo87 merged commit 34e85d4 into mainmatter:master Apr 18, 2019
@Turbo87 Turbo87 deleted the revert-preproreg branch April 18, 2019 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3.0.0-beta.1 in Addon
2 participants